[Mono-bugs] [Bug 80912][Min] New - Anchored control with size 0 is not layed out correctly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 20 12:27:40 EST 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=80912
--- shadow/80912 2007-02-20 12:27:40.000000000 -0500
+++ shadow/80912.tmp.20889 2007-02-20 12:27:40.000000000 -0500
@@ -0,0 +1,41 @@
+Bug#: 80912
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Anchored control with size 0 is not layed out correctly
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System;
+using System.Diagnostics;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ Control c = new Control();
+ public TestForm() {
+ c.Anchor = AnchorStyles.Left | AnchorStyles.Right;
+ Controls.Add(c);
+ Debug.Assert(c.Width == 0);
+ }
+}
+
+How often does this happen?
+Always (on the SVN version).
+
+Additional Information:
+It seems to be caused by the "> 0" in Control.UpdateDistances. I suggest
+changing it to ">= 0".
More information about the mono-bugs
mailing list