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


           Summary: AutoSized controls that are not anchored are placed
                    incorrectly
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to