Skip to content

Commit 0f93224

Browse files
authored
Merge pull request #12725 from Actipro/fix-popup-offset
Fix popups in Windows being offset incorrectly by a workaround for another issue
2 parents 57236c0 + b6e3cc0 commit 0f93224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Windows/Avalonia.Win32/WindowImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ private PixelSize HiddenBorderSize
552552
get
553553
{
554554
// Windows 10 and 11 add a 7 pixel invisible border on the left/right/bottom of windows for resizing
555-
if (Win32Platform.WindowsVersion.Major < 10 || !HasFullDecorations)
555+
if (Win32Platform.WindowsVersion.Major < 10 || !HasFullDecorations || GetStyle().HasFlag(WindowStyles.WS_POPUP))
556556
{
557557
return PixelSize.Empty;
558558
}

0 commit comments

Comments
 (0)