dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
644 stars 39 forks source link

Window size not correctly applied #200

Open char8t opened 5 days ago

char8t commented 5 days ago

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 commented 5 days ago

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 commented 5 days ago

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))

https://github.com/microsoft/microsoft-ui-xaml/issues/10204