- vscroll.Bounds = new Rectangle (Math.Max (0, ClientRectangle.Right - vscroll.Width),
- ClientRectangle.Top, vscroll.Width,
- Math.Max (0, ClientSize.Height - (hscroll.Visible ? hscroll.Height : 0)));
-
+ vscroll.Bounds = new Rectangle (ClientRectangle.Left,
+ ClientRectangle.Top,
+ vscroll.Width,
+ Math.Max(0, ClientSize.Height - (vmod)));
+ } else {
+ hscroll.Bounds = new Rectangle (ClientRectangle.Left,
+ Math.Max(0, ClientRectangle.Height - hscroll.Height),
+ Math.Max(0, ClientSize.Width - hmod),
+ hscroll.Height);
+
+ vscroll.Bounds = new Rectangle (
+ Math.Max(0, ClientRectangle.Right - vscroll.Width),
+ ClientRectangle.Top,
+ vscroll.Width,
+ Math.Max(0, ClientSize.Height - vmod));
+ }
+ }
+
+ internal RightToLeft GetInheritedRtoL ()
+ {
+ for (Control c = this; c != null; c = c.Parent)
+ if (c.RightToLeft != RightToLeft.Inherit)
+ return c.RightToLeft;
+ return RightToLeft.No;