aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Scroller.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2014-12-22 08:08:36 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2014-12-22 08:08:36 +0100
commite8b13fbea6cab4f01af769a1246c49c588fa2f3e (patch)
tree649f51c9c995c5f0c106ce3c60bc99fd364b1368 /src/GraphicObjects/Scroller.cs
parent1753010a7b08f29f425356171f78817dc8c6e7f4 (diff)
CompilerServices for EventHandler statements in XML attributes
Improve code formatting debug
Diffstat (limited to 'src/GraphicObjects/Scroller.cs')
-rw-r--r--src/GraphicObjects/Scroller.cs8
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;
}