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:
Emilio Cobos Álvarez 2020-07-31 15:16:34 +00:00
Родитель 8de6c706ec
Коммит c8cd713611
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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),