Skip to content

Commit

Permalink
Merge pull request #12725 from Actipro/fix-popup-offset
Browse files Browse the repository at this point in the history
Fix popups in Windows being offset incorrectly by a workaround for another issue
  • Loading branch information
jmacato authored and grokys committed Oct 2, 2023
1 parent 0ecc683 commit 9471e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ private PixelSize HiddenBorderSize
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;
}
Expand Down

0 comments on commit 9471e5e

Please sign in to comment.