Closed UralMichael closed 2 months ago
why not updating all packages?
@timunie Initially I updated everything to 11.0.2 in my project. In the template I wanted to find the exact package that causes the artifact.
I've just re-checked the template project with updating everything to 11.0.2 and even to 11.0.3. The result is the same.
@emmauss could you check if we have some window styles that shouldn't be there in borderless mode?
Set ExtendClientAreaTitleBarHeightHint="0"
to workaround it.
Can confirm that this is still an issue in 11.1.3. BorderOnly has a small sliver of title bar visible on Windows 11. Additionally, BorderOnly seemingly causes window to not respect CanResize="False"
Forgot to post an explanation here. On Windows, BorderOnly will for the OS to apply a border on the window. On Windows 10 and newer, that border is invisible on the left, bottom and right of the window, but visible on the top. That's the white line you see in the pics. Its not an artifact, it the OS applied border. This behavior can not be removed for BorderOnly. As for setting CanResize being ignored, this should be fixed in master. Due to the behaviors of BorderOnly and CanResize=False being mutually exclusive, CanResize=false essentially removes BorderOnly is enabled, because setting a window Border makes a window resizable
Describe the bug I have an application where the main window is configured to not have the default window bar (
SystemDecorations="BorderOnly"
).I updated Avalonia packages to the new version 11.0.2.
Now the window has an artifact margin on the top side.
To Reproduce
Avalonia .NET App (Avalonia UI)
11.0.2
SystemDecorations="BorderOnly"
in the main windowMainWindow.axaml:
Project file:
Screenshots
11.0.0:
11.0.2:
Desktop: