[Mono-bugs] [Bug 82748][Nor] New - Control: Anchor issues after changing the parent

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Sep 8 07:51:38 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=82748

--- shadow/82748	2007-09-08 07:51:38.000000000 -0400
+++ shadow/82748.tmp.12345	2007-09-08 07:51:38.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 82748
+Product: Mono: Class Libraries
+Version: 1.2
+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 issues after changing the parent
+
+Steps to reproduce the problem:
+
+using System;
+using System.Diagnostics;
+using System.Drawing;
+using System.Windows.Forms;
+
+static class Test
+{
+	static void Main ()
+	{
+		Form f = new Form ();
+		Control c = new Control ();
+		c.Size = new Size (100, 100);
+		Control c2 = new Control ();
+		c2.Size = c.Size;
+		c2.Controls.Add (c);
+		c.Anchor = AnchorStyles.Right;
+		f.Controls.Add (c);
+		f.Show ();
+		Debug.Assert (c.Left == 0);
+		f.Close ();
+	}
+}


More information about the mono-bugs mailing list