[Mono-bugs] [Bug 469296] New: Controls in winforms draws heigher in mono than in .net framework.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 26 06:51:21 EST 2009


           Summary: Controls in winforms draws heigher in mono than in
                    .net framework.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: kano01 at terra.es
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other

Created an attachment (id=267574)
 --> (https://bugzilla.novell.com/attachment.cgi?id=267574)
graphical test

Description of Problem:
Controls in winforms draws heigher in mono than in .net framework.
A winform designed in visual studio.net and proved in .net framework 2.0, when
ported to mono 1.9.1 is deformed. The controls are deformed proportionally to
its heigh.
Only are deformed controls managed in function InitializeComponent by the .net
If method call this.ResumeLayout(false) at the end of the InitializeComponent
is commented, controls shows in mono identically than in .net
Controls created by code in OnLoad or OnShow events are not deformed.

Steps to reproduce the problem:
1. Execute the attached binary
The Lines are drawed by code using the Form1_Paint event. Right boxes ar drawn
by code in form constructor after calling InitializeComponent.
Left boxes are designed with visual studio designer and managed by .net.
All the boxes measures are 64x64px and the lines are drawn every 64 px. Left
boxes managed by .net sizes, when drawn in mono are heigher than 64 px.

Actual Results:
Wrong drawing

Expected Results:
Same drawing in .net than in mono

How often does this happen? 

Additional Information:
The visual studio.net proyect is attached with the binary compiled in
bin/debug/ directory.

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