Closed
Bug 1177524
Opened 10 years ago
Closed 10 years ago
[Control Center] Improve subview animations
Categories
(Firefox :: General, defect, P1)
Firefox
General
Tracking
()
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
(Whiteboard: [fxprivacy] [campaign])
Attachments
(6 files, 2 obsolete files)
|
1.49 MB,
image/gif
|
Details | |
|
2.45 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
|
1.53 MB,
image/gif
|
Details | |
|
757.47 KB,
image/gif
|
Details | |
|
3.46 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
|
4.75 KB,
patch
|
ttaubert
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
The animation looks a little bumpy, let's improve it.
Flags: qe-verify+
Flags: firefox-backlog+
| Assignee | ||
Comment 1•10 years ago
|
||
Two problems here:
1) When closing the subview the content immediately disappears before it moves out to the right.
2) When closing the subview the "More Information" button jumps to the top and then slides down again.
| Assignee | ||
Comment 2•10 years ago
|
||
This fixes the jumping button.
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Attachment #8626315 -
Flags: review?(gijskruitbosch+bugs)
| Assignee | ||
Updated•10 years ago
|
Iteration: --- → 41.3 - Jun 29
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Comment 4•10 years ago
|
||
Wanted to apply that same patch to the main menu, but esp. the devtools button seems to handle subviews itself and then they still disappear.
Attachment #8626323 -
Flags: review?(gijskruitbosch+bugs)
| Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Comment on attachment 8626315 [details] [diff] [review]
0001-Bug-1177524-Apply-max-height-0-after-transitioning-t.patch
Review of attachment 8626315 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/customizableui/content/panelUI.xml
@@ +13,5 @@
> <stylesheet src="chrome://browser/content/customizableui/panelUI.css"/>
> </resources>
> <content>
> <xul:box anonid="viewContainer" class="panel-viewcontainer" xbl:inherits="panelopen,viewtype,transitioning">
> + <xul:stack anonid="viewStack" xbl:inherits="viewtype,transitioning" viewtype="main" class="panel-viewstack">
I wonder if this will help simplifying some of the CSS.
Attachment #8626315 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 7•10 years ago
|
||
Comment on attachment 8626323 [details] [diff] [review]
0002-Bug-1177524-Don-t-hide-the-subview-until-after-the-t.patch
Review of attachment 8626323 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/controlcenter/panel.inc.css
@@ +29,5 @@
> .panel-mainview[panelid=identity-popup] {
> min-width: 30em;
> }
>
> +#identity-popup-securityView:not([mainview]):not([current]) {
I think we should probably use this everywhere? Can you update the onSubviewHidden thing to fire after the transition finishes (assuming that doesn't cause "interesting" races with clicking to open a view right after closing one...).
Attachment #8626323 -
Flags: review?(gijskruitbosch+bugs)
| Assignee | ||
Comment 8•10 years ago
|
||
Ok that took me a while to come up with but it works for the control center, the history subview, and the devtools subview now.
We're basically replacing display:none with visibility:collapse to preserve that non-visible elements do not affect the layout, but we can transition from visiblity:visible for the currently shown subview to visibility:collapse after the transition is done.
Moved the clearSubview() calls for history and devtools subviews to onPanelShowing() so that their contents stick around for the transition.
Attachment #8626323 -
Attachment is obsolete: true
| Assignee | ||
Updated•10 years ago
|
Attachment #8627512 -
Flags: review?(gijskruitbosch+bugs)
| Assignee | ||
Comment 9•10 years ago
|
||
Can do with one rule less actually.
Attachment #8627512 -
Attachment is obsolete: true
Attachment #8627512 -
Flags: review?(gijskruitbosch+bugs)
Attachment #8627513 -
Flags: review?(gijskruitbosch+bugs)
Updated•10 years ago
|
Iteration: 41.3 - Jun 29 → 42.1 - Jul 13
Updated•10 years ago
|
Rank: 1
Comment 10•10 years ago
|
||
Comment on attachment 8627513 [details] [diff] [review]
0002-Bug-1177524-Don-t-hide-the-subview-until-after-the-t.patch, v3
Review of attachment 8627513 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM for now. Part of me wonders if/how this works with keyboard a11y because now those items linger around. We could probably kill post-transition but that's more work, let's punt on that for now and we can revisit if necessary.
::: browser/base/content/browser.css
@@ +113,5 @@
> transition: transform 150ms;
> }
>
> panelview:not([mainview]):not([current]) {
> + transition: visibility 0s linear 150ms;
Pretty please make a CSS variable for the 150ms so that we reuse it between the transform on which this is waiting, and here. :-)
Attachment #8627513 -
Flags: review?(gijskruitbosch+bugs) → review+
Updated•10 years ago
|
QA Contact: mwobensmith
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/85a8d6b4838d
https://hg.mozilla.org/mozilla-central/rev/e5d227b6f424
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
| Assignee | ||
Comment 13•10 years ago
|
||
Approval Request Comment
[Feature/regressing bug #]: bug 1170759
[User impact if declined]: Subpar and jumpy animations when showing and hiding subviews in the control center.
[Describe test coverage new/current, TreeHerder]: No test coverage for animations.
[Risks and why]: Low risk, touches only the animation itself.
[String/UUID change made/needed]: None.
Attachment #8629205 -
Flags: review+
Attachment #8629205 -
Flags: approval-mozilla-aurora?
Comment 15•10 years ago
|
||
Comment on attachment 8629205 [details] [diff] [review]
Merge of both for Aurora uplift
Approving for uplift as it has been in m-c for a while.
Attachment #8629205 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 16•10 years ago
|
||
Updated•10 years ago
|
Whiteboard: [fxprivacy] → [fxprivacy] [campaign]
Comment 17•10 years ago
|
||
Verified fixed FF 41b3 Win 7, Ubuntu 14.04, OS X 10.10.
You need to log in
before you can comment on or make changes to this bug.
Description
•