-
-
Notifications
You must be signed in to change notification settings - Fork 206
Virtual Scroll loses scroll position on display: none #1778
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
Comments
I think it only happens with autosize. https://hoebbelsb.github.io/rxa-virtual-scroll/#/demos/autosize |
hey @malua it makes sense it happens with autosize. On display none all nodes become invisible and probably the resize observer will report their size as 0. If you are not relying on the resizeObserver, just turn it off with the |
Thanks for the help, but unfortunately this does not fix the issue. Also with |
yes please, that would help a ton! |
I have created a repo to reproduce the issue: And thank you! |
Uh oh!
There was an error while loading. Please reload this page.
Description
In the Ionic Framework pages are hidden in the navigation stack by setting display: none;
When using the virtual scroll in a page which is then hidden by
display: none;
the scroll position changes when the page comes back into view and gets visible.Steps to Reproduce the Issue
Create a virtual scroll list and toggle visibliity with
display:none;
Environment
Happens on all browsers (Firefox, Safari, Chrome)
Please let me know if you know anything about that, and if it could be fixed? Thank you!
The text was updated successfully, but these errors were encountered: