mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 930771 - Ensure that overlay scrollbars don't leave behind white bands after fading out. r=jimm
This commit is contained in:
parent
77ead8cc84
commit
62dc972fe9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user