Browse Source
window.WindowDecorationMargin.Top can be negative, but Height cannot (#16735)
release/11.2.0-beta1
Max Katz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/Chrome/TitleBar.cs
|
|
|
@ -27,7 +27,7 @@ namespace Avalonia.Controls.Chrome |
|
|
|
|
|
|
|
if (window.WindowState != WindowState.FullScreen) |
|
|
|
{ |
|
|
|
Height = window.WindowDecorationMargin.Top; |
|
|
|
Height = Math.Max(0, window.WindowDecorationMargin.Top); |
|
|
|
|
|
|
|
if (_captionButtons != null) |
|
|
|
{ |
|
|
|
|