Closed Bug 910023 Opened 12 years ago Closed 10 years ago

[e10s] Select dropdowns should be correctly positioned and sized

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
e10s later ---

People

(Reporter: Felipe, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In bug 897060 we implemented support for displaying the dropdowns from <select> widgets in the parent, by opening a menupopup in the x/y position in the screen underneath the widget. It works reasonably well but differs in behavior from the non-e10s <select> popups in various circumstances, such as: (1) when there's not enough space until the edge of the screen (right or bottom) to open the popup, it shifts the popup to fully display it, which might cover the original <select> widget in the page (as opposed to flipping the anchor point and displaying it above the widget) (2) (multiple monitors untested) (3) no attempt is currently made to properly size the popup width. The menupopup code calculates a reasonable default width to fit the content, but <select> dropdowns should have the same size as the main widget. This depends on bug 910022 because to have the same width we need to use the same font/font-size/margins/paddings etc. For (1) and (2), I'd like to extend openPopup to support anchoring in a Rect as if it's anchored in an element, instead of fiddling with front-end code to make it work. For (3) I hope that bug 910022 will fully solve it, but there might be necessary to make small adjustments depending on the specific appearance of the menupopup per platform
Component: General → XP Toolkit/Widgets: Menus
Product: Toolkit → Core
If in bug 910022 we decide to not use <option> styling (except maybe for colors) and go with native styling, then in this bug we should match the width of the <select> to the styling of the dropdown, not the other way around. We have to be careful here to ensure that the dropdown never pops up over browser chrome (which can be annoying and/or insecure).
Attached file testcase.html
I have seen the same problem today for my online banking account. I reduced the content of the web page to this minimized testcase. As you can see the width is not correct, and inside the popup we strangely show list dots on the left side when e10s is enabled.
Blocks: e10s-select
No longer blocks: core-e10s
All of these are covered by others bugs, so I'm just going to close this one.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Component: XP Toolkit/Widgets: Menus → XUL
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: