[Mono-bugs] [Bug 500796] New: AutoScrolling ScrollableControl derived classes don't update ClientSize Rectangle if Scrollbars are present. .NET difference

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 4 17:57:56 EDT 2009


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


           Summary: AutoScrolling ScrollableControl derived classes don't
                    update ClientSize Rectangle if Scrollbars are present.
                    .NET difference
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=289850)
 --> (http://bugzilla.novell.com/attachment.cgi?id=289850)
ClientSize not updating like .NET for ScrollableControls into AutoScrollMode

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10)
Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10

>From reading msdn. For ScrollableControl's in AutoScroll mode:

DisplayArea represents the virtual area.
ClientSize is the actually 'client' area (the bit you can see excluding
NClient)

on .NET Changing the virtual area (by setting AutoScrollMinSize property) to a
size greater then the ClientSize causes the ClientSize to be reduced by what
seems
to be the width/height of the scrollbars (16px on my Xp system).

Attaching Sample Test program.

Reproducible: Always

Steps to Reproduce:
1. Compile and run attached sample code
2.
3.
Actual Results:  
DisplayRectangle = {X=0,Y=0,Width=150,Height=150}
ClientSize = {Width=150, Height=150}
HScroll = False
VScroll = False
DisplayRectangle = {X=0,Y=0,Width=150,Height=300}
ClientSize = {Width=150, Height=150}
HScroll = True
VScroll = True

Expected Results:  
DisplayRectangle = {X=0,Y=0,Width=150,Height=150}
ClientSize = {Width=150, Height=150}
HScroll = False
VScroll = False
DisplayRectangle = {X=0,Y=0,Width=150,Height=300}
ClientSize = {Width=134, Height=134}
HScroll = True
VScroll = True

-- 
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