[Mono-bugs] [Bug 441546] New: Bug with Autoscroll Panel and HorizontalScroll / VerticalScroll.LargeChange

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 4 11:41:50 EST 2008


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


           Summary: Bug with Autoscroll Panel and HorizontalScroll /
                    VerticalScroll.LargeChange
           Product: Mono: Runtime
           Version: 2.0
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: stifu at free.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=249713)
 --> (https://bugzilla.novell.com/attachment.cgi?id=249713)
Testcase (sources + binaries)

See testcase.

Go to the File menu, and select "Paint image" (if the image is painted without
having to go through a menu, the bug isn't triggered).
This will display an image in the panel. However, the scrollbars aren't right
in Mono, due to the fact we changed their LargeChange property. First, the size
of the scrollbars changed, this shouldn't happen.

The vertical scrollbar takes up all of the height because of this:
this.panel1.VerticalScroll.LargeChange = 5000;

And the horizontal scrollbar is tiny because of this:
this.panel1.HorizontalScroll.LargeChange = 1;

There is a second problem with the scrollbars: the LargeChange property affects
how far you can scroll the panel. In the testcase, you can horizontally scroll
the panel much farther than you should be able to, and you can't scroll
vertically at all, while you should be able to.
MS .NET takes the AutoScrollMinSize property as the max value you can scroll up
to, no matter what.

PS: the "SmallChange" property doesn't seem to suffer from any problem with
Mono.


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