Browse Source

take into account the extended mode when Resize is called.

pull/5736/head
Dan Walmsley 6 years ago
parent
commit
60a0ec9a3a
  1. 4
      src/Windows/Avalonia.Win32/WindowImpl.cs

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

@ -483,8 +483,8 @@ namespace Avalonia.Win32
IntPtr.Zero,
0,
0,
requestedClientWidth + (windowRect.Width - clientRect.Width),
requestedClientHeight + (windowRect.Height - clientRect.Height),
requestedClientWidth + (_isClientAreaExtended ? 0 : windowRect.Width - clientRect.Width),
requestedClientHeight + (_isClientAreaExtended ? 0 : windowRect.Height - clientRect.Height),
SetWindowPosFlags.SWP_RESIZE);
}
}

Loading…
Cancel
Save