[Mono-bugs] [Bug 439443] New: Incorrect AutoSize behavior for various docked controls

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 28 06:07:25 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=439443


           Summary: Incorrect AutoSize behavior for various docked controls
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jonathan.l.anderson at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


When a control with AutoSize=true and AutoSizeMode set to GrowOnly is docked to
one side of a form, in Windows the control will shrink despite the GrowOnly
setting.  In Mono, only TableLayoutPanel currently has this behavior.  Also,
TableLayoutPanel should not shrink when not docked, but it does.

I have only looked at controls that expose a public AutoSizeMode property and
that can be added to a Form.  The controls I tested are:
TableLayoutPanel
FlowLayoutPanel
ToolStripContentPanel
Panel
GroupBox
UserControl
Button

Of these, only Button does not shrink when autosized and docked.  I'm attaching
a patch for SVN r117240 that fixes the problems with docked and autosized
controls (as well as the TableLayoutPanel shrinking when not docked).  The
patch also includes tests for this behavior as well.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list