diff --git a/src/kits/interface/ScrollBar.cpp b/src/kits/interface/ScrollBar.cpp index 321f2fd612..f14bf8ef75 100644 --- a/src/kits/interface/ScrollBar.cpp +++ b/src/kits/interface/ScrollBar.cpp @@ -1043,12 +1043,8 @@ BScrollBar::MaxSize() BSize BScrollBar::PreferredSize() { - BSize preferredSize = _MinSize(); - if (fOrientation == B_HORIZONTAL) - preferredSize.width *= 2; - else - preferredSize.height *= 2; - + BSize preferredSize; + GetPreferredSize(&preferredSize.width, &preferredSize.height); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), preferredSize); }