Skip to content

Commit

Permalink
Fix issue that ChromeWindow is misplaced after changed text size.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Aug 29, 2020
1 parent 5d37ec0 commit d6eb753
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,13 @@ private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref b
return new IntPtr(3);
}

else if (msg == (int)WindowsMessages.WM_SETTINGCHANGE)
{
this.UpdateLocationAndSize();
handled = true;
return IntPtr.Zero;
}

// Note: Double scaling is avoided on .NET Framework 4.6.2 or later.
else if (msg == (int)WindowsMessages.WM_DPICHANGED)
{
Expand Down

0 comments on commit d6eb753

Please sign in to comment.