Skip to content
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

Fix PopupRoot.ConfigurePosition being called unnecessary #17322

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Oct 22, 2024

This PR fixes PopupRoot.ConfigurePosition that was being called on each LayoutUpdated even if the bounds of the PlacementTarget weren't changing.

An existing unit test has been updated.

A double position update has also been removed for VerticalOffset and HorizontalOffset, which had two handlers for the same thing (AddClassHandler and OnPropertyChanged).

HandlePositionChange() has been simplified to avoid duplicate code.

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0052761-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added this pull request to the merge queue Oct 23, 2024
Merged via the queue into AvaloniaUI:master with commit fe0b91d Oct 23, 2024
11 checks passed
@MrJul MrJul deleted the fix/popup-multiple-position-changes branch October 23, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants