Author: calberto
Date: 2007-03-23 16:32:35 -0500 (Fri, 23 Mar 2007)
New Revision: 74924
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2007-03-23 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* ListView.cs: Always set item_control.Width in LayoutDetails
if View is Details. Setting it later in CalculateScrollBars
in a not-so-corner scenario (the sum of columns width is
not bigger than the ListView width when handle is created, and then
that sum gets bigger by increasing the width of the columns)
causes a very weird recursion path (which shouldn't be happening,
since header_control sets it in CalculateScrollBars too). This bug
appeared after Chris' fixes for handle created issues, so probably
it's related to some handle-creation time.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-23 21:10:05 UTC (rev 74923)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-23 21:32:35 UTC (rev 74924)
@@ -1,3 +1,15 @@
+2007-03-23 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+ * ListView.cs: Always set item_control.Width in LayoutDetails
+ if View is Details. Setting it later in CalculateScrollBars
+ in a not-so-corner scenario (the sum of columns width is
+ not bigger than the ListView width when handle is created, and then
+ that sum gets bigger by increasing the width of the columns)
+ causes a very weird recursion path (which shouldn't be happening,
+ since header_control sets it in CalculateScrollBars too). This bug
+ appeared after Chris' fixes for handle created issues, so probably
+ it's related to some handle-creation time.
+
2007-03-23 Chris Toshok <[EMAIL PROTECTED]>
* DataGrid.cs (GetVisibleRowCount): increase the row count in the
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-03-23 21:10:05 UTC (rev 74923)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-03-23 21:32:35 UTC (rev 74924)
@@ -1364,6 +1364,7 @@
item_control.Visible = true;
item_control.Location = new Point (0,
header_control.Height);
+ item_control.Width = ClientRectangle.Width;
int item_height = GetDetailsItemHeight ();
ItemSize = new Size (0, item_height); // We only cache
Height for details view
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches