Author: jpobst
Date: 2007-06-01 13:22:34 -0400 (Fri, 01 Jun 2007)
New Revision: 78438
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2007-06-01 Jonathan Pobst <[EMAIL PROTECTED]>
* Control.cs: In UpdateBounds, only recalculate anchor distances if the
change is user explicit, not when the layout engine moves stuff. Fixes
anchoring to bottom and right. [Fixes bug #81790]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-01 17:18:42 UTC (rev 78437)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-01 17:22:34 UTC (rev 78438)
@@ -1,3 +1,9 @@
+2007-06-01 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * Control.cs: In UpdateBounds, only recalculate anchor distances if the
+ change is user explicit, not when the layout engine moves stuff. Fixes
+ anchoring to bottom and right. [Fixes bug #81790]
+
2007-06-01 Andreia Gaita <[EMAIL PROTECTED]>
* PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2007-06-01 17:18:42 UTC (rev 78437)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2007-06-01 17:22:34 UTC (rev 78438)
@@ -3935,7 +3935,7 @@
if (layout_suspended == 0) {
if (!performLayout)
foreach (Control c in
Controls.GetAllControls ())
- c.recalculate_distances = true;
+ c.UpdateDistances ();
if (performLayout && layout_pending) {
PerformLayout();
@@ -4048,7 +4048,9 @@
else
return;
- UpdateDistances ();
+ // If the user explicitly moved or resized us,
recalculate our anchor distances
+ if (specified != BoundsSpecified.None)
+ UpdateDistances ();
if (parent != null)
parent.PerformLayout(this, "Bounds");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches