Bug 930771 - Ensure that overlay scrollbars don't leave behind white bands after fading out. r=jimm

This commit is contained in:
Stephen Pohl 2013-11-11 10:19:54 -05:00
parent 77ead8cc84
commit 62dc972fe9

View File

@ -17,6 +17,7 @@
#include "nsEventStates.h"
#include "nsINameSpaceManager.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsLookAndFeel.h"
#include "nsMenuFrame.h"
#include "nsGkAtoms.h"
#include <malloc.h>
@ -2317,6 +2318,17 @@ nsNativeThemeWin::GetMinimumWidgetSize(nsRenderingContext* aContext, nsIFrame* a
break;
}
case NS_THEME_SCROLLBAR:
{
if (nsLookAndFeel::GetInt(
nsLookAndFeel::eIntID_UseOverlayScrollbars) != 0) {
aResult->SizeTo(::GetSystemMetrics(SM_CXHSCROLL),
::GetSystemMetrics(SM_CYVSCROLL));
return NS_OK;
}
break;
}
case NS_THEME_TOOLBAR_SEPARATOR:
// that's 2px left margin, 2px right margin and 2px separator
// (the margin is drawn as part of the separator, though)