[Mono-bugs] [Bug 81843][Nor] New - TableLayoutPanel Autosizing hides labels and textboxes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jun 10 06:20:01 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 trichards57 at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81843
--- shadow/81843 2007-06-10 06:20:01.000000000 -0400
+++ shadow/81843.tmp.11653 2007-06-10 06:20:01.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 81843
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details: Windows XP
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: trichards57 at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: TableLayoutPanel Autosizing hides labels and textboxes
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem: The autosize option for the TableLayoutPanel
+columns does not operate correctly. When a label is set to fill
+(Label.Dock = DockStyle.Fill) in a cell of the table, the table's columns
+are set to autosize, and there is no other visible control in the Label's
+column, the column is resized to zero width. This also seems to happen
+when there is a control in the column but it is hidden by another control
+(in this case a button which had ended up behind a status bar). If
+Label.Dock = DockStyle.None, the sizing works correctly. The same
+problem appears to also effect TextBoxes under the same circumstances.
+This does not happen, however, if the Label and/or TextBox does not have
+a column on either side which contains controls.
+
+Steps to reproduce the problem:
+1. Create a form containing a TableLayoutPanel
+2. Give the LayoutPanel three columns and two rows
+3. Place a Button in the bottom left and bottom right cells.
+4. Place a TextBox or Label in either of the centre cells.
+5. Set all three columns Size Type to AutoSize
+6. If possible, run the program in visual studio with a reference to
+the .Net Framework (Version 2) System.Windows.Forms. It should work fine.
+7. Now run the program with a reference to the Mono WinForms library
+instead (Using the version that comes with the current stable windows
+installer.) You should see that the TextBox and/or Label in the center
+cells are not visible, with the column they are in reduced to a very
+small width.
+
+Actual Results:
+The column containing the TextBox and/or Label controls reduces to a very
+small width, rendering the TextBox and/or Label invisible.
+
+Expected Results:
+The column should be made to a width wide enough to contain the Label
+and/or TextBox
+
+How often does this happen?
+Everytime I've tried it with the Label and TextBox are in a layout
+similar to the one described above.
+
+Additional Information:
+I'm using the Stable Mono Installer downloaded 09/06/2007 (the day before
+this post). I'm writing the program in Visual Studio C# 2005 Express
+Edition, using the built in compiler. I then run the program using
+the 'mono [programName]' command in the Mono-1.2.4 Command Prompt.
More information about the mono-bugs
mailing list