mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #1705 - Part 9b: Revert overzealous changes on Mac (cocoa).
This commit is contained in:
parent
b523c3be80
commit
4461ea7a07
1 changed files with 2 additions and 12 deletions
|
|
@ -3404,18 +3404,8 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsPresContext* aPresContext,
|
|||
|
||||
bool isSmall = (scrollbarFrame->StyleDisplay()->mAppearance == NS_THEME_SCROLLBAR_SMALL);
|
||||
bool isHorizontal = (aWidgetType == NS_THEME_SCROLLBARTHUMB_HORIZONTAL);
|
||||
int32_t& minSize = isSmall ? kSmallScrollbarThumbMinSize : kRegularScrollbarThumbMinSize;
|
||||
if (IsScrollbarWidthThin(aFrame)) {
|
||||
minSize /= 2;
|
||||
}
|
||||
if (isHorizontal) {
|
||||
aResult->width = kRegularScrollbarThumbMinSize;
|
||||
aResult->height = minSize;
|
||||
} else {
|
||||
aResult->width = minSize;
|
||||
aResult->height = kRegularScrollbarThumbMinSize;
|
||||
}
|
||||
|
||||
int32_t& minSize = isHorizontal ? aResult->width : aResult->height;
|
||||
minSize = isSmall ? kSmallScrollbarThumbMinSize : kRegularScrollbarThumbMinSize;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue