BScrollBar: Report a more correct maximum size.
This way, BScrollBar will now be scaled appropriately when used within layouts, as it is in e.g. Tracker.
This commit is contained in:
@@ -1035,7 +1035,8 @@ BScrollBar::MinSize()
|
||||
BSize
|
||||
BScrollBar::MaxSize()
|
||||
{
|
||||
BSize maxSize = _MinSize();
|
||||
BSize maxSize;
|
||||
GetPreferredSize(&maxSize.width, &maxSize.height);
|
||||
if (fOrientation == B_HORIZONTAL)
|
||||
maxSize.width = B_SIZE_UNLIMITED;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user