[Mono-bugs] [Bug 80762][Min] New - ToolStrip.Dock should not change the Size when the ToolStrip is not added to a container

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 8 05:43:57 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=80762

--- shadow/80762	2007-02-08 05:43:57.000000000 -0500
+++ shadow/80762.tmp.9662	2007-02-08 05:43:57.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 80762
+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: ToolStrip.Dock should not change the Size when the ToolStrip is not added to a container
+
+Description of Problem:
+Setting ToolStrip.Dock to DockStyle.None prior to adding it to the 
+Controls collection changes its size.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System.Diagnostics;
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    public TestForm() {
+        ToolStrip t = new ToolStrip();
+        t.Dock = DockStyle.None;
+        Debug.Assert(t.Size == new Size(100, 25));
+    }
+}
+
+Actual Results:
+Assertion failed.
+
+
+Expected Results:
+No failure.
+
+How often does this happen? 
+Always (on the SVN version).
+
+Additional Information:
+I think ToolStrip.Dock should do what it currently does only if the 
+ToolStrip is in a container.


More information about the mono-bugs mailing list