[Webkit-unassigned] [Bug 63882] New: Select controls with small quantity of options incorrectly draw scrollbars larger then the control itself (and other scrollbar oddities)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 3 16:46:29 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=63882

           Summary: Select controls with small quantity of options
                    incorrectly draw scrollbars larger then the control
                    itself (and other scrollbar oddities)
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit wx
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mmacleod at webmail.co.za


Created an attachment (id=99586)
 --> (https://bugs.webkit.org/attachment.cgi?id=99586&action=review)
Patch to correct behaviour

When a select has only a few items the scrollbar is rendering larger then the control. For select controls with a large amount of items this is not an issue.
Furthermore e.g. a scrolling div with a small amount of items does not exhibit the same problem.

It seems that this is because the function wxRenderer_DrawScrollbar expects the current, max and step paramaters as pixel values but that in the case of Select objects the ScrollBar object instead uses "item" units internally e.g. a step of 1 item instead of 25 pixels, a maximum of 19 items instead of 300 pixels. These "item" values are passed into wxRenderer_DrawScrollbar as is which then confuses it. Instead these values should be converted into pixels before being passed to wxRenderer_DrawScrollbar.

I am attaching a patch which corrects this behaviour, as well as a small snippet of HTML to reproduce the problem.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list