-
-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patching values in Tabulator causes the vertical scrollbar to reset #3249
Comments
Apparently this is still an issue. Will attempt reproduce tomorrow. |
I believe there are two problems with the current fix.
|
Following the advice I have found here https://stackoverflow.com/questions/66920201/react-tabulator-looses-scroll-selection-after-replacedata I tried implementing a similar solution here #3327 it seems to be working well except for the fact that when we patch the scrollbar gets deselected and this can be annoying when updating frequently. Judging by this discussion it seems there is no easy fix for that olifolkerd/tabulator#3056 |
Thanks for looking into that @Kadek! The PR looks good and I'll be happy to merge. |
I have just discovered that the issue reappeared. After some investigation I am not perfectly sure which change caused the problem but it appears there is additional rendering happening which restarts the scrollbar to 0. I played around this change #3463 and managed to fix the problem with this approach #3645. This fixes the problem present in this issue as well as still preserves the fix for #3450. Would it be possible to merge #3645 ? |
Done! Some tests are failing but it looks like the same ones are failing on master. It shouldn't be related to #3645 then? |
The problem still exists in |
Python 3.8.13 It appears to be the styling causing the vertical scroll bar to reset. The vertical scroll bar behaves properly when styling is removed. However, the horizontal scroll bar is reset, and when using pagination, the table returns to page 1.
|
ALL software version info
Python 3.8.8
panel 0.13.0a43
Description of expected behavior and the observed behavior
Expected behaviour: When patching data in Tabulator the vertical scrollbar should stay in the same position.
Observed behaviour: When using patch function on Tabulator the vertical scrollbar jumps to the top
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Screenshots or screencasts of the bug in action
tabulator.mp4
The text was updated successfully, but these errors were encountered: