diff options
Diffstat (limited to 'src/GraphicObjects/Scroller.cs')
| -rw-r--r-- | src/GraphicObjects/Scroller.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GraphicObjects/Scroller.cs b/src/GraphicObjects/Scroller.cs index 74300dba..c896f3b4 100644 --- a/src/GraphicObjects/Scroller.cs +++ b/src/GraphicObjects/Scroller.cs @@ -80,8 +80,8 @@ namespace go if (scrollY > 0)
scrollY = 0;
- else if (scrollY < -child.Slot.Height + clientBounds.Height)
- scrollY = -child.Slot.Height + clientBounds.Height;
+ else if (scrollY < -child.Slot.Height + ClientRectangle.Height)
+ scrollY = -child.Slot.Height + ClientRectangle.Height;
}
if (HorizontalScrolling )
@@ -93,8 +93,8 @@ namespace go if (scrollX > 0)
scrollX = 0;
- else if (scrollX < -child.Slot.Width + clientBounds.Width)
- scrollX = -child.Slot.Width + clientBounds.Width;
+ else if (scrollX < -child.Slot.Width + ClientRectangle.Width)
+ scrollX = -child.Slot.Width + ClientRectangle.Width;
}
|