Closed Bug 861702 Opened 11 years ago Closed 11 years ago

PanelUI sub-view container can end up showing multiple views

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: Unfocused, Assigned: Unfocused)

References

Details

Attachments

(1 file, 1 obsolete file)

Trying to open both the subviews we have at the moment ends up messing up the display, showing two subviews. Turns out the history subview doesn't include class="PanelUI-subView", which is needed to hide it.

That's the only time we use that class, and its not obvious what the consequences are if left out. We don't actually need it - all we're using it for is to match all children of PanelUI-subViews.
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #737316 - Flags: review?(mconley)
Comment on attachment 737316 [details] [diff] [review]
Patch v1

Review of attachment 737316 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/themes/shared/panelUIOverlay.inc.css
@@ +85,5 @@
>    transform: translateX(@menuPanelWidth@);
>    transition: transform 150ms;
>  }
>  
> +#PanelUI-subViews > *:not([current]) {

The seems like it would be pretty bad for performance since it would first retrieve all elements in the DOM and then check their parent. Could buildWidget just add the class?
OS: Windows 8 → All
Hardware: x86_64 → All
Ugh, yes. Must remember selectors are read RTL.
Attached patch Patch v1.1Splinter Review
Attachment #737316 - Attachment is obsolete: true
Attachment #737316 - Flags: review?(mconley)
Attachment #737318 - Flags: review?(jaws)
Attachment #737318 - Flags: review?(jaws) → review+
https://hg.mozilla.org/projects/ux/rev/1b5f8fb0a275
Whiteboard: [fixed in jamun] → [fixed in jamun][fixed-in-ux]
https://hg.mozilla.org/mozilla-central/rev/1b5f8fb0a275
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in jamun][fixed-in-ux]
Target Milestone: --- → Firefox 28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: