Merge pull request #10254 from peppy/fix-pancake-scrollbar

Fix scroll container's scrollbar not respecting minimum size on first resize
This commit is contained in:
Dan Balasescu 2020-09-28 13:31:21 +09:00 committed by GitHub
commit 600d37cc04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ public OsuScrollbar(Direction scrollDir)
CornerRadius = 5;
// needs to be set initially for the ResizeTo to respect minimum size
Size = new Vector2(SCROLL_BAR_HEIGHT);
const float margin = 3;
Margin = new MarginPadding