Browse Source

fix THICKFRAME style being applied on maximized when border is removed (#14882)

release/11.1.0-beta1
Emmanuel Hansen 3 years ago
committed by GitHub
parent
commit
9646164708
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

2
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -1423,7 +1423,7 @@ namespace Avalonia.Win32
} }
else else
{ {
style &= ~fullDecorationFlags; style &= ~(fullDecorationFlags | WindowStyles.WS_THICKFRAME);
if (newProperties.Decorations == SystemDecorations.BorderOnly && newProperties.WindowState != WindowState.Maximized) if (newProperties.Decorations == SystemDecorations.BorderOnly && newProperties.WindowState != WindowState.Maximized)
{ {

Loading…
Cancel
Save