Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Nov 10, 2023
1 parent e75fc1d commit 6f85a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Myra/Graphics2D/UI/Containers/ScrollViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ protected override void InternalArrange()
_thumbMaximumY = 1;
}

if (_horizontalScrollingOn && ShowHorizontalScrollBar)
if (_horizontalScrollingOn)
{
bounds.Width = measureSize.X;
}
Expand All @@ -581,7 +581,7 @@ protected override void InternalArrange()
bounds.Width = availableSize.X;
}

if (_verticalScrollingOn && ShowVerticalScrollBar)
if (_verticalScrollingOn)
{
bounds.Height = measureSize.Y;
}
Expand Down

0 comments on commit 6f85a03

Please sign in to comment.