* ScrollableControl.cs: ScrollIControlntoView: we now only move the
commit68ec1cb5f45b97adf782a9fd98347aebb23d0651
authorRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 8 May 2007 10:50:04 +0000 (8 10:50 -0000)
committerRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 8 May 2007 10:50:04 +0000 (8 10:50 -0000)
treed61e0bd4a0c7171ab0e0dcb3435e053bb8ff1f92
parent468f8d970945364bbd6ac81273e07541f9891019
* ScrollableControl.cs: ScrollIControlntoView: we now only move the
  control as much as necessary in order to make it entirely visible,
  instead of centering the control in the container (matches MS
  behaviour). CalculateCanvasSize: we need to take the current scroll
  position into account when calculating the maximum canvas,
  otherwise the following scenario will fail: resize so that the
  scrollbars appear, use the scrollbars to scroll, resize again
  smaller, and now the canvas size is too small. Recalculate: when
  showing scrollbars make sure they start off at 0, and try to scroll
  the active control into view. Fixes #79540. HandleScrollBar: don't
  scroll anywhere if the scrollbar isn't visible.

svn path=/trunk/mcs/; revision=76913
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs