Closed
Bug 1381991
Opened 7 years ago
Closed 7 years ago
Pin to Overflow animation is placed in the wrong position when using a non-default font-size
Categories
(Firefox :: Theme, defect, P1)
Firefox
Theme
Tracking
()
Tracking | Status | |
---|---|---|
firefox56 | --- | verified |
People
(Reporter: jaws, Assigned: jaws)
References
Details
(Whiteboard: [reserve-photon-animation])
Attachments
(2 files, 1 obsolete file)
STR:
Open the Browser Toolbox
Inspect the <window>
Set the font-size on the window to font-size:1.4em;
Pin an item to the overflow using the context menu
Expected result:
The overflow animation should run, vertically centered and aligned with the other toolbar icons
Actual result:
The overflow animation is shifted down and not in line with the other toolbar icons.
Assignee | ||
Updated•7 years ago
|
Whiteboard: [photon-animation][triage]
Assignee | ||
Comment 1•7 years ago
|
||
Hey Eric, can you provide a version of the Pin to Overflow animation that has equal blank space above and below the icon? We will need that to fix this bug.
Flags: needinfo?(epang)
Updated•7 years ago
|
Flags: qe-verify+
Priority: -- → P3
QA Contact: jwilliams
Whiteboard: [photon-animation][triage] → [reserve-photon-animation]
Comment 2•7 years ago
|
||
Hey Jared, I updated the icon so there's equal space above and below the icon's movement area. Let me know if you need anything else.
Flags: needinfo?(epang) → needinfo?(jaws)
Assignee | ||
Comment 3•7 years ago
|
||
Hey Eric, I downloaded the attachment but the icon is still only 26px tall and there doesn't appear to be any extra blank space above the icon.
Flags: needinfo?(jaws) → needinfo?(epang)
Comment 4•7 years ago
|
||
Hey Jared,
Here's the updated overflow icon animation. It extra space should be in there now.
Flags: needinfo?(epang)
Updated•7 years ago
|
Attachment #8888209 -
Attachment is obsolete: true
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Iteration: --- → 56.3 - Jul 24
Priority: P3 → P1
Comment hidden (mozreview-request) |
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8888425 [details]
Bug 1381991 - Pin to Overflow animation is placed in the wrong position when using a non-default font-size.
https://reviewboard.mozilla.org/r/159364/#review165012
I confess I'm lukewarm on this approach, but as it works I'm in favor of landing it and refining later if a better solution emerges. Sorry my head is broken by this time of night so I don't have any constructive alternative to offer.
::: browser/themes/shared/toolbarbutton-icons.inc.css:365
(Diff revision 2)
> }
>
> #nav-bar-overflow-button > .toolbarbutton-animatable-box {
> - position: fixed;
> + position: absolute;
> overflow: hidden;
> - /* The height of the sprite is 24px, which is 8px taller than
> + top: calc(50% - 18px); /* Vertically center the 36px tall animatable image */
Just a comment: there's really no xul flex-box way of doing this? All this top: 50% - 1/2 height vertical alignment stuff was why we came up with flexbox in the first place.
::: browser/themes/shared/toolbarbutton-icons.inc.css:374
(Diff revision 2)
> width: 18px; /* Width of each frame within the SVG sprite */
> - height: 24px; /* Height of each frame within the SVG sprite */
> + height: 36px; /* Height of each frame within the SVG sprite */
> }
>
> #nav-bar-overflow-button > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image {
> - height: 24px; /* Height of each frame within the SVG sprite */
> + height: var(--toolbarbutton-height); /* Height must be equal to height of toolbarbutton padding-box */
As you wont find --toolbarbutton-height in any stylesheet, lets add a comment pointing out it is defined at runtime by setToolbarButtonHeightProperty
Attachment #8888425 -
Flags: review?(sfoster) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 10•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8888425 [details]
Bug 1381991 - Pin to Overflow animation is placed in the wrong position when using a non-default font-size.
https://reviewboard.mozilla.org/r/159364/#review165012
> Just a comment: there's really no xul flex-box way of doing this? All this top: 50% - 1/2 height vertical alignment stuff was why we came up with flexbox in the first place.
There isn't a way using flex-box to take an element out of document flow and place it on top of another element. position:fixed or position:absolute are our only two ways, and absolute works best for what we want.
Comment 11•7 years ago
|
||
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/320f9642bcef
Pin to Overflow animation is placed in the wrong position when using a non-default font-size. r=sfoster
I had to back this out because it was blocking me from backing out bug 1355922.
Flags: needinfo?(jaws)
Comment 13•7 years ago
|
||
Backout by kwierso@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/88bdf54bbfeb
Backed out changeset 320f9642bcef because it blocks backing out 1355922 a=backout
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(jaws)
Comment 14•7 years ago
|
||
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0ca1d6af381a
Pin to Overflow animation is placed in the wrong position when using a non-default font-size. r=sfoster
Comment 15•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Updated•7 years ago
|
QA Contact: jwilliams → stefan.georgiev
Comment 16•7 years ago
|
||
I was able to reproduce this issue on Nightly build 56.0a1 from 20170720030203.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 (20170925150345)
This issue is verified as fixed with the latest 57.0b3 build on 9/26/2017.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•