mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 874570: Make scrollbar frames smaller for small overlay scrollbars. r=smichaud
This commit is contained in:
parent
36dcdbd154
commit
4bf023b44c
@ -2851,7 +2851,15 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsRenderingContext* aContext,
|
||||
*aIsOverridable = false;
|
||||
|
||||
if (nsLookAndFeel::UseOverlayScrollbars()) {
|
||||
aResult->SizeTo(16, 16);
|
||||
nsIFrame* scrollbarFrame = GetParentScrollbarFrame(aFrame);
|
||||
if (scrollbarFrame &&
|
||||
scrollbarFrame->StyleDisplay()->mAppearance ==
|
||||
NS_THEME_SCROLLBAR_SMALL) {
|
||||
aResult->SizeTo(14, 14);
|
||||
}
|
||||
else {
|
||||
aResult->SizeTo(16, 16);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user