Browse Source

Merge pull request #12725 from Actipro/fix-popup-offset

Fix popups in Windows being offset incorrectly by a workaround for another issue
release/11.0.5-rc1
Jumar Macato 3 years ago
committed by Steven Kirk
parent
commit
9471e5e93c
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

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

@ -552,7 +552,7 @@ namespace Avalonia.Win32
get
{
// Windows 10 and 11 add a 7 pixel invisible border on the left/right/bottom of windows for resizing
if (Win32Platform.WindowsVersion.Major < 10 || !HasFullDecorations)
if (Win32Platform.WindowsVersion.Major < 10 || !HasFullDecorations || GetStyle().HasFlag(WindowStyles.WS_POPUP))
{
return PixelSize.Empty;
}

Loading…
Cancel
Save