[Webkit-unassigned] [Bug 37232] [Chromium] RTL <select> dropdown box expands to right instead of left

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 20 10:39:09 PDT 2010


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





--- Comment #5 from Dimitri Glazkov (Google) <dglazkov at chromium.org>  2010-04-20 10:39:09 PST ---
(From update of attachment 52994)
>
> +    // Adjust the starting x-axis for RTL dropdown. For RTL dropdown, the right edge
> +    // of dropdown box should be aligned with the right edge of <select> element box,
> +    // and the dropdown box should be expanded to left if more space needed.
> +    bool rightAligned = m_listBox->m_popupClient->menuStyle().textDirection() == RTL;

Can m_popupClient be 0 here?

> +    if (rightAligned)
> +        move(x() + popupWidth - listBoxWidth, y());
>  
>      invalidate();
>  }

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