Skip to content

Commit 016e54c

Browse files
committed
force panels to keep recursion-internal when updating their scroll bar
1 parent ac5eb9a commit 016e54c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MLEM.Ui/Elements/Panel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ protected virtual void ScrollSetup() {
355355
// the scroller height has the same relation to the scroll bar height as the visible area has to the total height of the panel's content
356356
var scrollerHeight = Math.Min(this.ChildPaddedArea.Height / childrenHeight / this.Scale, 1) * this.ScrollBar.Area.Height;
357357
this.ScrollBar.ScrollerSize = new Vector2(this.ScrollerSize.Value.X, Math.Max(this.ScrollerSize.Value.Y, scrollerHeight));
358+
this.ScrollBar.UpdateAreaIfDirty();
358359
}
359360

360361
// update the render target

0 commit comments

Comments
 (0)