-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Anchored windows - first show draw misplacement #1852
Comments
emilk
pushed a commit
that referenced
this issue
Jul 29, 2022
* Add dry run feature for anchor calculation. (#1) This PR resolves issue: #1852 We introduce dry_run flag which makes component invisible until we do second pass of rendering - which allows us to properly calculate position for anchor. (This removes rapid flicker when new window is drawn for the first time). * Change naming convention and add description
Resolved via: #1856 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using .anchor on window - the first time the window is rendered results in window showing in "default" position for a brief moment and then jumping to proper anchor position. I belive this is caused by the way the anchor is implemented. We force the paint of the window since we dont know the size of its area - and as a result can't find where the "center" is. Maybe a sollution would be a "dry run" - that would result in size calculation but would not paint the window (resulting in flicker).
Video sample showing issue (the video is slowed down - since the effect last only a second):
Issue.mp4
Code to reproduce issue :
The text was updated successfully, but these errors were encountered: