Browse Source

add top border size to hidden border size

win32_hidden_border_fix_test
Emmanuel Hansen 2 years ago
parent
commit
e540189a11
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

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

@ -527,7 +527,7 @@ namespace Avalonia.Win32
GetWindowRect(_hwnd, out var frameRect);
var borderWidth = GetSystemMetrics(SystemMetric.SM_CXBORDER);
return new PixelSize(clientRect.left - frameRect.left - borderWidth, 0);
return new PixelSize(clientRect.left - frameRect.left - borderWidth, clientRect.top - frameRect.top - borderWidth);
}
}

Loading…
Cancel
Save