BScrollView: Ask the BScrollBars what their preferred sizes are.

This replaces the use of the hard-coded scroll bar size constants
and instead asks the scrollbars for their preferred sizes directly.

Right now, this is a giant no-op since BScrollBar just returns
the same hard-coded size when asked. The next commit will, however,
change that.
This commit is contained in:
Augustin Cavalier
2020-07-05 18:37:48 -04:00
parent 9481a1ec39
commit b022a5e224
2 changed files with 32 additions and 27 deletions
+4 -4
View File
@@ -106,11 +106,11 @@ private:
void _AlignScrollBars(bool horizontal,
bool vertical, BRect targetFrame);
static BRect _ComputeFrame(BRect frame, bool horizontal,
bool vertical, border_style border,
static BRect _ComputeFrame(BRect frame, BScrollBar* horizontal,
BScrollBar* vertical, border_style border,
uint32 borders);
static BRect _ComputeFrame(BView* target, bool horizontal,
bool vertical, border_style border,
static BRect _ComputeFrame(BView* target, BScrollBar* horizontal,
BScrollBar* vertical, border_style border,
uint32 borders);
static float _BorderSize(border_style border);
static uint32 _ModifyFlags(uint32 flags, BView* target,