Skip to content

fix: prevent ContainsIn flyout layout oscillation on low-perf devices#2176

Open
gadfly3173 wants to merge 1 commit intosourcegit-scm:developfrom
gadfly3173:fix/flyout-layout-oscillation
Open

fix: prevent ContainsIn flyout layout oscillation on low-perf devices#2176
gadfly3173 wants to merge 1 commit intosourcegit-scm:developfrom
gadfly3173:fix/flyout-layout-oscillation

Conversation

@gadfly3173
Copy link
Contributor

Load refs data before showing the flyout instead of loading asynchronously after it is already visible. This eliminates multiple layout passes (LoadingIcon toggle + ItemsSource update) that caused the flyout to visibly resize on slower machines.

Fixes #2175

Load refs data before showing the flyout instead of loading
asynchronously after it is already visible. This eliminates
multiple layout passes (LoadingIcon toggle + ItemsSource update)
that caused the flyout to visibly resize on slower machines.
@love-linger
Copy link
Collaborator

I do not like it. The UI will get stuck when this commit is contained by too many refs. For example:

image

@gadfly3173
Copy link
Contributor Author

well, I could not find a better way to prevent the flyout resize.

@love-linger
Copy link
Collaborator

Try to add following code to CommitRelationTracking to see if it solves this issue

image

@gadfly3173
Copy link
Contributor Author

gadfly3173 commented Mar 10, 2026

image
_._20260310194816.mp4

not work. sometimes cursor hover on the flyout would refresh it.

@love-linger
Copy link
Collaborator

Yes, essentially, it is still because LayoutRoot does not correctly calculate the required size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants