Tooltip new fitContent property #2536
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
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
The text was updated successfully, but these errors were encountered: