-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 with extendedclientarea incorrectly sized on fullscreen #17497
Comments
Instead of using a <Panel Padding="{Binding $parent[Window].OffScreenMargin}">
...
</Panel> See also: Maybe this should be built into the default |
@pavelovcharov The screenshot looks fine. The custom title "Content in Title Bar" is fully visible. I don't see a problem. Let me explain:
If you select "MainWindow" in DevTools and look for (Tested with Avalonia 11.1.3) |
@mgarstenauer Yes, I have enabled the ExtendClientAreaToDecorationsHint option. I'm using v11.2.0 |
Or should we add this 1pixel margin manually? |
I am not sure how the 1 pixel margin is supposed to be handled – or whether it is actually a bug. It is discussed here as well: #17202 I think the authors of the Win32 window implementation need to clarify the issue. |
Describe the bug
I have a simple window with a customized titlebar.
When not maximized, the elements are fully displayed.
When maximized, the window seem larger than the screen.
This behavior can be mitigated by adding a maximized specific styling:
<Window.Styles> <Style Selector="Window[WindowState=Maximized]"> <Setter Property="Padding" Value="8" /> </Style> </Window.Styles>
Here's a solution embedding the issue, derived from the avalonia sample repository:
schlorping.zip
To Reproduce
Compare the elements' edges when the window is maximized VS when it's not. (seem to only occur on windows)
Expected behavior
No response
Avalonia version
11.2.0
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: