Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip new fitContent property #2536

Closed
ataylor32 opened this issue May 11, 2022 · 0 comments
Closed

Tooltip new fitContent property #2536

ataylor32 opened this issue May 11, 2022 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@ataylor32
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

CodeSandbox Case (Bug Reports)

https://codesandbox.io/s/brave-leaf-f6zl7l?file=/src/App.vue

Current behavior

Sometimes the tooltip's automatic positioning works great and other times it doesn't. Here is a short video that demonstrates this:

Tooltip.mp4

Expected behavior

If the tooltip detects that it doesn't have much room for words to be displayed in a manner that's easy to read, it should choose a different position.

Minimal reproduction of the problem with instructions

Go to the CodeSandbox link above and hover over the buttons. See the above video for a demo of the bug.

What is the motivation / use case for changing the behavior?

Fixing this would make tooltips easier to read.

Please tell us about your environment:

I develop on macOS using Visual Studio Code

  • Vue version: 3.X

  • PrimeVue version: 3.12.X

  • Browser: I've confirmed this issue using Chrome on both macOS and Windows

@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label May 13, 2022
@tugcekucukoglu tugcekucukoglu added Resolution: Wontfix Issue will not be fixed due to technical limitations Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Type: Bug Issue contains a bug related to a specific component. Something about the component is not working Resolution: Wontfix Issue will not be fixed due to technical limitations labels May 24, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.12.7 milestone May 31, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this May 31, 2022
@tugcekucukoglu tugcekucukoglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Type: Bug Issue contains a bug related to a specific component. Something about the component is not working labels May 31, 2022
@tugcekucukoglu tugcekucukoglu changed the title Tooltip's automatic positioning sometimes chooses a bad position, making the tooltip hard to read Tooltip new fitContent property May 31, 2022
tugcekucukoglu added a commit that referenced this issue May 31, 2022
Fixed #2536 - Tooltip new fitContent property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants