зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1656471 - Scrollbars and a bunch of other widgets should have no extra overflow. r=spohl
Otherwise we show the buttons underneath which is no good. Differential Revision: https://phabricator.services.mozilla.com/D85568
This commit is contained in:
Родитель
8de6c706ec
Коммит
c8cd713611
|
@ -1204,9 +1204,17 @@ bool nsNativeBasicTheme::GetWidgetOverflow(nsDeviceContext* aContext,
|
|||
case StyleAppearance::Range:
|
||||
overflow.SizeTo(6, 6, 6, 6);
|
||||
break;
|
||||
default:
|
||||
case StyleAppearance::Textarea:
|
||||
case StyleAppearance::Textfield:
|
||||
case StyleAppearance::NumberInput:
|
||||
case StyleAppearance::Listbox:
|
||||
case StyleAppearance::MenulistButton:
|
||||
case StyleAppearance::Menulist:
|
||||
case StyleAppearance::Button:
|
||||
overflow.SizeTo(4, 4, 4, 4);
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
aOverflowRect->Inflate(nsMargin(CSSPixel::ToAppUnits(overflow.top),
|
||||
|
|
Загрузка…
Ссылка в новой задаче