mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1249496 - Don't apply dpi-based scaling for window titlebar dimensions when on a secondary display, because windows doesn't scale it. r=emk
This commit is contained in:
parent
4662cafd4a
commit
0114592c75
@ -2152,7 +2152,6 @@ nsNativeThemeWin::GetWidgetPadding(nsDeviceContext* aContext,
|
||||
if (aWidgetType == NS_THEME_WINDOW_TITLEBAR_MAXIMIZED)
|
||||
aResult->top = GetSystemMetrics(SM_CXFRAME)
|
||||
+ GetSystemMetrics(SM_CXPADDEDBORDER);
|
||||
ScaleForFrameDPI(aResult, aFrame);
|
||||
return ok;
|
||||
}
|
||||
|
||||
@ -2506,7 +2505,6 @@ nsNativeThemeWin::GetMinimumWidgetSize(nsPresContext* aPresContext, nsIFrame* aF
|
||||
aResult->height += GetSystemMetrics(SM_CYFRAME);
|
||||
aResult->height += GetSystemMetrics(SM_CXPADDEDBORDER);
|
||||
*aIsOverridable = false;
|
||||
ScaleForFrameDPI(aResult, aFrame);
|
||||
return rv;
|
||||
|
||||
case NS_THEME_WINDOW_BUTTON_BOX:
|
||||
|
Loading…
Reference in New Issue
Block a user