-
Notifications
You must be signed in to change notification settings - Fork 57
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
Scroll bar transitions trigger when minimizing/restoring the application window. #375
Comments
I've discovered the reason this happens (I think) but not yet come up with a solution. Writing the reason here so I don't forget: When the tabview is created and undergoes layout for the first time its size and the content size are computed and then the Note that since this issue was made, 70d9f23 reverses the initial state so that the scrollbar is not visible for the first frame. But this just reverses the problem for when the scrollbar should be visible from the start. The solution to this problem is not obvious at the moment. Ideally the data needs to be updated with the sizes, and the binding recomputed, all before the drawing phase of the first frame after scrollview creation. However, because currently events are the only way to update data, and events happen before bindings and layout, the data can't be updated until the next frame. Even if we somehow update the data directly after layout the binding system has already run and if we update the checked state manually (without a binding), any layout dependent styling on the scrollbars (like transitioning their width when they should be visible) can't happen until the next frame because layout has already run. I'll keep thinking about this. |
For the record, this happens with any kind of (scroll?) view. (There is no |
Ah I mistyped, I meant scrollview. |
Scroll bars that are using the
:checked
state to control animations seem to be triggering when the window is minimized/restored.Here's a short video showing the problem:
2023-07-14_22-23-23.mp4
And the code used:
The text was updated successfully, but these errors were encountered: