开发者

Jquery Tooltip inside Scrollable

开发者 https://www.devze.com 2023-03-14 04:47 出处:网络
I\'m working on a tooltip based on this tutorial which uses jquery .offset() for position. page with to开发者_开发知识库oltip

I'm working on a tooltip based on this tutorial which uses jquery .offset() for position. page with to开发者_开发知识库oltip

When I place a tooltip inside a scrollable it is incorrectly positioned for all but the first scrollable item due to overflow (I think).

Any ideas for fixes?

Thanks


If I am not mistaken, the tooltip uses fixed coordinates to display. So there is no easy fix. You could have the possison modified based on the amount you scroll. Say if you scroll 50px in the scrollable, you move the tooltip 50px y axis. This would require modifying the properties directly, and it might cause some weird problems.

Thats my 2 cents on how you would fix your problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消