[Mono-bugs] [Bug 504582] New: ClientSize property not properly applied when assigned prior to FormBorderStyle property assigment

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat May 16 10:58:23 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=504582


           Summary: ClientSize property not properly applied when assigned
                    prior to FormBorderStyle property assigment
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jmichels at bluefintrading.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.7;
NET CLR 3.5; ffco7) Gecko/2009021910 Firefox/3.0.7

If the FormBorderStyle property of a System.Windows.Forms.Form class is
assigned AFTER the ClientSize property, the resulting client size is not
correctly displayed. It appears that the displayed client size is reduced by
the amount of space consumed by the border elements.

If the ClientSize property is assigned after the FormBorderStyle property, the
correct behavior is observed.

Reproducible: Always

Steps to Reproduce:
1. Edit InitializeComponent() function of Form such that ClientSize property is
assigned prior to FormBorderStype property.
2. Compile and Run.

Actual Results:  
ClientSize displayed is smaller than specified.

Expected Results:  
ClientSize displayed is equal to value specified.

-- 
Configure bugmail: http://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