[Mono-bugs] [Bug 439479] New: AutoSized controls that are not anchored are placed incorrectly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 28 08:33:44 EDT 2008


           Summary: AutoSized controls that are not anchored are placed
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            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: ---

Created an attachment (id=248305)
 --> (https://bugzilla.novell.com/attachment.cgi?id=248305)
proposed patch with test case

If a control is not anchored or docked and is autosized, when it changes size,
the top, left corner should remain in the same location.  This is the behavior
in Windows with Microsoft .Net.  Currently in Mono, the control is repositioned
as well as resized.

I'm attaching a proposed patch as well as a test that tests for correct
placement after an autosize for all anchoring styles (considering that vertical
and horizontal anchoring are independent).

This patch also reduces the number of times a control is resized when it is
anchored to two opposite sides (top & bottom or left & right).  Currently,
while the control will end up with the correct size and placement, the anchor
and autosize layout methods will both be setting the control to different sizes
and trigger excess SizeChanged events.

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