You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
* 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
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: