[Mono-bugs] [Bug 82805][Nor] New - Control: Anchor does not work properly after a call to SuspendLayout
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Sep 11 16:09:41 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by georgegiolfan at yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82805
--- shadow/82805 2007-09-11 16:09:41.000000000 -0400
+++ shadow/82805.tmp.32383 2007-09-11 16:09:41.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 82805
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Control: Anchor does not work properly after a call to SuspendLayout
+
+Steps to reproduce the problem:
+
+using System;
+using System.Diagnostics;
+using System.Drawing;
+using System.Windows.Forms;
+
+static class Test
+{
+
+ static void Main ()
+ {
+ Control c1 = new Control ();
+ c1.Size = new Size (100, 100);
+ Control c2 = new Control ();
+ c2.Size = new Size (100, 100);
+
+ c2.SuspendLayout ();
+ c1.Anchor = AnchorStyles.Left | AnchorStyles.Right;
+ c2.Controls.Add (c1);
+ c2.Size = new Size (200, 200);
+ c2.ResumeLayout ();
+
+ Debug.Assert (c1.Width == 200);
+ }
+}
More information about the mono-bugs
mailing list