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 on MacOS #12327

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

Takoooooo
Copy link
Contributor

What does the pull request do?

This is the continuation of the #12093 .Previous PR fixed the problem for Windows but not for the MacOS because on the MacOS problem was located on the native side. On MacOS window gets centered when hasPosition is false,it is set to true only when you explicitly set the position. Now we store the latest window position when we hide window too and when we show the Window again it is shown on the previous position instead of being centered

@Takoooooo Takoooooo requested a review from danwalmsley July 25, 2023 16:33
@avaloniaui-team
Copy link
Contributor

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

@grokys grokys added this pull request to the merge queue Jul 27, 2023
Merged via the queue into master with commit e394ca5 Jul 27, 2023
@grokys grokys deleted the fix-macos-window-positioning branch July 27, 2023 17:14
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.

3 participants