Refresh frame margins when moving between monitors (#11412)
## Summary of the Pull Request Refresh the DPI and frame margins when we move the window between different DPI monitors. ## PR Checklist Closes #11367
This commit is contained in:
parent
14d068f73b
commit
43ce9fda09
|
@ -310,6 +310,12 @@ void NonClientIslandWindow::OnSize(const UINT width, const UINT height)
|
|||
{
|
||||
_UpdateIslandPosition(width, height);
|
||||
}
|
||||
|
||||
// GH#11367: We need to do this,
|
||||
// otherwise the titlebar may still be partially visible
|
||||
// when we move between different DPI monitors.
|
||||
RefreshCurrentDPI();
|
||||
_UpdateFrameMargins();
|
||||
}
|
||||
|
||||
// Method Description:
|
||||
|
|
Loading…
Reference in New Issue