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:
Jonathan Kew 2016-03-09 10:55:35 +00:00
parent 4662cafd4a
commit 0114592c75

View File

@ -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: