Browse Source

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

Fix popups in Windows being offset incorrectly by a workaround for another issue
pull/12729/head
Jumar Macato 3 years ago
committed by GitHub
parent
commit
0f93224d9c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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