Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4c5d043

Browse files
committed
Make horizontal scrollbar disappear when not needed.
1 parent 1db2c08 commit 4c5d043

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/GitHub.UI/Controls/ScollingVerticalStackPanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected override Size MeasureOverride(Size availableSize)
160160
ExtentWidth = maxWidth;
161161
ExtentHeight = height;
162162

163-
UpdateScrollInfo(new Size(maxWidth, height), new Size(ViewportWidth, ViewportHeight));
163+
UpdateScrollInfo(new Size(maxWidth, height), availableSize);
164164

165165
return new Size(
166166
Math.Min(maxWidth, availableSize.Width),

0 commit comments

Comments
 (0)