Author: toshok
Date: 2006-12-04 15:33:59 -0500 (Mon, 04 Dec 2006)
New Revision: 68990
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
2006-12-04 Chris Toshok <[EMAIL PROTECTED]>
* DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
minimum 0. Fixes the scrollbar exception in bug #80136.
* DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
to reassign the propertydescriptor.
2006-12-04 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-12-04 20:11:51 UTC (rev 68989)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-12-04 20:33:59 UTC (rev 68990)
@@ -1,3 +1,8 @@
+2006-12-04 Chris Toshok <[EMAIL PROTECTED]>
+
+ * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
+ minimum 0. Fixes the scrollbar exception in bug #80136.
+
2006-12-04 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* MdiClient.cs:
@@ -29,6 +34,11 @@
2006-12-04 Chris Toshok <[EMAIL PROTECTED]>
+ * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
+ to reassign the propertydescriptor.
+
+2006-12-04 Chris Toshok <[EMAIL PROTECTED]>
+
* PropertyGridView.cs: cached_splitter_location is only used in
!DOUBLEBUFFER code.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-12-04 20:11:51 UTC (rev 68989)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-12-04 20:33:59 UTC (rev 68990)
@@ -2850,7 +2850,11 @@
cells_area.X = ClientRectangle.X + rowhdrs_area.Width;
cells_area.Y = columnhdrs_area.Y +
columnhdrs_area.Height;
cells_area.Width = ClientRectangle.X +
ClientRectangle.Width - cells_area.X;
+ if (cells_area.Width < 0)
+ cells_area.Width = 0;
cells_area.Height = ClientRectangle.Y +
ClientRectangle.Height - cells_area.Y;
+ if (cells_area.Height < 0)
+ cells_area.Height = 0;
}
void CalcColumnHeaders ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches