Closed Bug 858219 Opened 11 years ago Closed 11 years ago

Panel should switch to main view after closing

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file)

We currently stay on a subview if the panel hides by changing focus. If the panel closes, we should always go back to the main view.
Attached patch Patch v1Splinter Review
Attachment #733527 - Flags: review?(bmcbride)
Comment on attachment 733527 [details] [diff] [review]
Patch v1

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

I guess the transition is short enough that we don't need to worry about it being noticeable when quickly closing/re-opening the panel, especially as the panel doesn't open and become visible instantaneously (I tried, and shouldn't see it... but this was over a remote desktop connection).
Attachment #733527 - Flags: review?(bmcbride) → review+
There are two rules in panelUIOverlay.inc.css that (I believe) short-circuit the transitions when the panel is closed:

#PanelUI-popup[panelopen="true"] > #PanelUI-container {                         
  transition: height 150ms;                                                     
}                                                                               
                                                                                
#PanelUI-popup[panelopen="true"] > #PanelUI-container > #PanelUI-viewStack > #PanelUI-mainView {
  transition: transform 150ms;                                                  
}                                                                               

Assuming these rules are working as I think they are, the animations will only occur when the panel is open.
Landed in jamun as https://hg.mozilla.org/projects/jamun/rev/5ed3cad80eb5
Whiteboard: [fixed in jamun]
Landed in UX as https://hg.mozilla.org/projects/ux/rev/5ed3cad80eb5
Whiteboard: [fixed in jamun] → [fixed in jamun][fixed in ux]
https://hg.mozilla.org/mozilla-central/rev/0c24dab393f8
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: