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:
Augustin Cavalier
2020-07-28 21:04:24 -04:00
parent 64ba528788
commit a06b52bee8
+2 -2
View File
@@ -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);
}