[Mono-bugs] [Bug 82739][Nor] New - ToolStrip: MenuStrip in ToolStripLayoutStyle.Flow fills the whole form

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 7 14:22:14 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 andyhume32 at yahoo.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=82739

--- shadow/82739	2007-09-07 14:22:14.000000000 -0400
+++ shadow/82739.tmp.29524	2007-09-07 14:22:14.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 82739
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: andyhume32 at yahoo.co.uk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ToolStrip: MenuStrip in ToolStripLayoutStyle.Flow fills the whole form
+
+Sorry, another... :-,)
+
+Repro is ./ch04_Layout/FlowLayoutToolStripSample from the sample code for 
+the book "Windows Forms 2.0 Programming," by Chris Sells and Michael 
+Weinhardt, sources available from 
+http://www.sellsbrothers.com/writing/wfbook/
+
+Tested on SVN head on Win32, 1.2.5_5 Win32, and 1.2.5_5 Suse VM.
+
+MenuStrip with LayoutStyle Flow draws with menu full height (expected) 
+and width (not expected!) of the form.  MSFT has the menu just wider than 
+the menu items' text.  BTW widening the Form on Mono Win32 shows the 
+other form controls, on Suse VM the widened portion is empty.
+
+Note the VS forms designer created code has 
+  this.menuStrip1.Size = new System.Drawing.Size(303, 23);
+Does MSFT ignore this line when using Flow mode?  Yes, seems to be the 
+answer -- a value greater is not respected.  But no that's not the issue 
+on Mono, the same behavior is seen even when that line(/such lines) is 
+removed.


More information about the mono-bugs mailing list