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

Window size not correctly applied #200

Closed
char8t opened this issue Nov 26, 2024 · 3 comments
Closed

Window size not correctly applied #200

char8t opened this issue Nov 26, 2024 · 3 comments

Comments

@char8t
Copy link

char8t commented Nov 26, 2024

First big thumbs up for this library. It is a must have for any WinUI3 app!

I do not know if this is really an issue or if i am missing something here but when specifying the window size it is actually a little bit smaller then requested:

image

Is this expected? If so why? Again this is not really an issue for me but i find it a bit odd.

@dotMorten
Copy link
Owner

I believe it is because of Windows taking the drop shadow into account as well. If so perhaps there’s a way to detect that and add to it but would take some research

@char8t
Copy link
Author

char8t commented Nov 26, 2024

Wow i did not expect such a fast response! I opened an issue at the WinUI3 repo as the same behavior can be observed when specifiying window dimensions via a call to AppWindow.Resize(new SizeInt32(800, 450))

microsoft/microsoft-ui-xaml#10204

@char8t
Copy link
Author

char8t commented Dec 2, 2024

Closed as this is not a real bug. It just means that ResizeClient + AppWindow.TitleBar.Height should be used when using ExtendContentIntoTitleBar = true.

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

No branches or pull requests

2 participants