-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Scrollbar flickering issue when widget matches window height #2704
Comments
not seeing this on mac (travel machine) so will need to try on windows when I get home... |
Still having this issue, with float: false gridstack-flickering-2.mp4 |
@adumesny Any updates about this issue ? |
This appears to be related to the scrollbar appearing and disappearing causing resizing (https://stackoverflow.com/a/21563741). The solution I found was just to use
|
I see it now. it has to do with with there isn't a 'fix' per say. Either you set the only 'fix' would be to base the size on the window (which doesn't change) instead of grid - but a grid not take entire page would not behave correctly, or somewhow detect a parent has a scrollbar and append that width to our math... seems too corner case. Maybe default to 'auto' was a bad idea :) |
I used |
Subject of the issue
I am using a grid where the widgets do not have a predefined size. When the widget exactly matches the height of the window, there is an issue with the scrollbar appearing and disappearing, which causes an infinite flickering effect.
Your environment
Steps to reproduce
Reproduced on the demo "Float grid demo" with float = false
https://github.com/gridstack/gridstack.js/assets/173177247/55f0d978-9292-427b-a959-e45f9a7c9970
Expected behavior
It should not be flickering
The text was updated successfully, but these errors were encountered: