Open rijk opened 3 years ago
Be smarter how to position the layer. In this case, use bottom instead of top.
Popper JS does this BTW: https://popper.js.org/docs/v2/modifiers/compute-styles/#adaptive
Add an option to disable repositioning after initial positioning
I also enjoy the way Popper gives you more control over this (with an update()
function you can call when you see fit). But it might not fit your vision for this library.
Here's a screen capture of what I mean:
https://user-images.githubusercontent.com/159500/105332099-86eff800-5bd4-11eb-963b-618ae73cced5.mov
There's a 1 frame glitch where the tooltip grows and is then repositioned:
This looks bad. Ideas for improvement:
bottom
instead oftop
.