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

Do not set borders if window state is maximized in Win32 #13228

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

emmauss
Copy link
Contributor

@emmauss emmauss commented Oct 12, 2023

What does the pull request do?

If SystemDecorations is BorderOnly, do not set border styles if WindowState is Maximized.

What is the current behavior?

Border styles are always applied with BorderOnly SystemDecorations, even if the window state doesn't require resizable borders. This creates transparent margin around the window bounds on Windows with WindowState=Maximized.

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

@emmauss emmauss requested a review from a team October 12, 2023 13:00
@avaloniaui-team
Copy link
Contributor

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

@maxkatz6 maxkatz6 enabled auto-merge October 17, 2023 00:04
@maxkatz6 maxkatz6 added this pull request to the merge queue Oct 17, 2023
Merged via the queue into master with commit 43f1b9d Oct 17, 2023
5 checks passed
@maxkatz6 maxkatz6 deleted the maximize_border branch October 17, 2023 02:48
@maxkatz6 maxkatz6 added backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Jan 12, 2024
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