I'm struggling to stop vue tooltip from appearing outside the screen.
I have this simple implementation:
<span>
class="features-tooltip"
v-tooltip="{ content: 'Long string here' }">
</span>
How do I make tooltip fit the window frame?
Thanks for help
Solution to your problem is pretty simple. You just have to add one additional property boundariesElement: 'window'
to your tooltip object.
So in your case it would look like this:
<span>
class="features-tooltip"
v-tooltip="{ content: 'Long string here', boundariesElement: 'window'}">
</span>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With