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 window incorrect positioning with window startup location CenterScreen #12093

Conversation

Takoooooo
Copy link
Contributor

What does the pull request do?

Previously if you would set Window WindowStartupLocation to WindowStartupLocation.CenterScreen when Window is already shown and set IsVisible to false and then to true Window will get centered which is not expected. This behaviour doesen't match WPF's behaviour.

Fixes #11857

@avaloniaui-team
Copy link
Contributor

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

@kekekeks kekekeks marked this pull request as ready for review July 11, 2023 08:55
@maxkatz6 maxkatz6 enabled auto-merge July 12, 2023 03:42
@avaloniaui-team
Copy link
Contributor

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

@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 19, 2023
Merged via the queue into master with commit ecd7985 Jul 19, 2023
@maxkatz6 maxkatz6 deleted the fix-window-incorrect-positioning-with-windowStartupLocation-centerScreen branch July 19, 2023 21:14
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.

Hidden window moves to a new position when unhidden
5 participants