BScrollView: Revert to earlier document-window adjust behavior.
We need a different constant or mechanism to get the document window border size, it appears, or a static method to get a scroll bar's preferred size. Should fix #16422.
This commit is contained in:
@@ -206,9 +206,9 @@ BScrollView::AttachedToWindow()
|
||||
}
|
||||
|
||||
if (fHorizontalScrollBar != NULL)
|
||||
fHorizontalScrollBar->ResizeBy(-fHorizontalScrollBar->Frame().Width(), 0);
|
||||
fHorizontalScrollBar->ResizeBy(-B_V_SCROLL_BAR_WIDTH, 0);
|
||||
else if (fVerticalScrollBar != NULL)
|
||||
fVerticalScrollBar->ResizeBy(0, -fHorizontalScrollBar->Frame().Height());
|
||||
fVerticalScrollBar->ResizeBy(0, -B_H_SCROLL_BAR_HEIGHT);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user