vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

vakata-dnd and contextmenu elements not accounting for body scroll #2737

Closed josplice closed 1 year ago

josplice commented 1 year ago

Firstly, great software. Really enjoy using it. My issue is small and I am sure easy to fix, but I create this question due to lack of understanding from me.

Screenshot 2023-08-08 at 08 08 38


Screenshot 2023-08-08 at 08 26 49

When I scroll on the main body, the contextmenu and vakata-dnd elements are out of place by the exact scroll amount. Like I said, I am sure I just missed something in the documentation, but it would be great if you could send me in the right direction for a fix.

The doc viewer is in an iframe, but the records tree is injected into a div.

How do I get jstree to use the scroll amount to set the offsetTop of the elements.

Appreciate it.

josplice commented 1 year ago

Just remove position: relative on the body.

vakata commented 1 year ago

Sorry I could not help sooner - I gather you found your fix? Let me know if I should reopen.