Closed
Bug 1094830
Opened 10 years ago
Closed 10 years ago
Open a new tab button shakes after it reaches the right edge of Firefox
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 36
People
(Reporter: bmaris, Assigned: bgrins)
References
Details
(Whiteboard: [devedition-polish])
Attachments
(2 files, 1 obsolete file)
78.46 KB,
image/gif
|
Details | |
1.72 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Open Firefox Developer Edition.
2. Open new tabs until the '+' button (open a new tab button) reaches the right edge.
3. Click on '+' button to add more tabs.
Expected result: The button does not shake.
Actual result: Button shakes if it`s clicked after it reaches the right edge of FF until navigation arrow buttons appear, after that happens it returns to normal.
I also noticed that on Ubuntu the '+' button is colored blue, is this intended?
Notes:
1. This issue reproduces on Windows and Ubuntu only.
2. Not reproducible on Mac OS X.
3. Screencast showing the issue attached.
Updated•10 years ago
|
Group: mozilla-employee-confidential
Assignee | ||
Comment 1•10 years ago
|
||
> I also noticed that on Ubuntu the '+' button is colored blue, is this
> intended?
That's what happens even on lightweight themes on linux. Take a look at bug 940326 for more information
Assignee | ||
Comment 2•10 years ago
|
||
(In reply to Bogdan Maris, QA [:bogdan_maris] from comment #0)
> Created attachment 8518167 [details]
> Screencast showing the issue
>
> STR:
> 1. Open Firefox Developer Edition.
> 2. Open new tabs until the '+' button (open a new tab button) reaches the
> right edge.
> 3. Click on '+' button to add more tabs.
>
> Expected result: The button does not shake.
>
> Actual result: Button shakes if it`s clicked after it reaches the right edge
> of FF until navigation arrow buttons appear, after that happens it returns
> to normal.
>
Thanks for the report, are you talking about the icon subtly moving location during the click, or the button itself disappearing from under the mouse once the 'all tabs' button shows up?
Flags: needinfo?(bogdan.maris)
Comment 3•10 years ago
|
||
I can reproduce this, it must be because of the selectors we use for the tabs.
Comment 4•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #3)
> I can reproduce this, it must be because of the selectors we use for the
> tabs.
*tab separators.
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #4)
> (In reply to Tim Nguyen [:ntim] from comment #3)
> > I can reproduce this, it must be because of the selectors we use for the
> > tabs.
>
> *tab separators.
I doubt that it is the tab separators, since that is now just changing the background-image and no longer changing widths/margins like the original version did.
Reporter | ||
Comment 6•10 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #2)
> (In reply to Bogdan Maris, QA [:bogdan_maris] from comment #0)
> > Created attachment 8518167 [details]
> > Screencast showing the issue
> >
> > STR:
> > 1. Open Firefox Developer Edition.
> > 2. Open new tabs until the '+' button (open a new tab button) reaches the
> > right edge.
> > 3. Click on '+' button to add more tabs.
> >
> > Expected result: The button does not shake.
> >
> > Actual result: Button shakes if it`s clicked after it reaches the right edge
> > of FF until navigation arrow buttons appear, after that happens it returns
> > to normal.
> >
>
> Thanks for the report, are you talking about the icon subtly moving location
> during the click, or the button itself disappearing from under the mouse
> once the 'all tabs' button shows up?
I`m talking about the button moving during the click.
Flags: needinfo?(bogdan.maris)
Assignee | ||
Updated•10 years ago
|
Group: mozilla-employee-confidential
Updated•10 years ago
|
Whiteboard: [devedition-polish]
Assignee | ||
Comment 7•10 years ago
|
||
I believe I've tracked this down when looking at 1093820. Basically, there is a custom width on .tabs-newtab-button and #new-tab-button. I think we only want that set on .tabs-newtab-button (at least on Windows).
Assignee | ||
Comment 8•10 years ago
|
||
There were a few things going on here:
1) There was a margin: 0 that was meant to override the 1px margin-bottom from @tabToolbarNavbarOverlap@. The problem is it wasn't applied to all buttons that have that overlap. I've moved that into it's own more specific and limited rule. (I know this still isn't totally ideal, but until bug 1091001 I think it's an improvement)
2) There was a width of 35px set to #TabsToolbar > #new-tab-button and .tabs-newtab-button. First of all, that should only have been set to .tabs-newtab-button (since the #new-tab-button is skinnier when overflowing in Windows). Secondly, that width should have been 36 (66px from tabs.inc - 30px for the tab curves).
3) There was an !important on the background-image rule, but as best as I can tell it is because of :hover rules like this: http://dxr.mozilla.org/mozilla-central/source/browser/themes/shared/tabs.inc.css#269. By moving it into the :hover rule I got rid of the !important.
I've checked on osx, windows 7 aero / classic / basic, and ubuntu and there is no more shaking in them.
Comment 9•10 years ago
|
||
Comment on attachment 8521086 [details] [diff] [review]
tab-shake.patch
Review of attachment 8521086 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/devedition.inc.css
@@ +306,2 @@
> .tabs-newtab-button {
> + width: 36px;
Would you mind converting https://mxr.mozilla.org/mozilla-central/source/browser/themes/shared/tabs.inc.css?rev=3adeab7e472d#319 to a calc() using @tabCurveWidth@ so we would catch this in the future?
Attachment #8521086 -
Flags: review?(MattN+bmo) → review+
Comment 10•10 years ago
|
||
Does this mean we can remove the other workaround for jittering that landed yesterday?
Assignee | ||
Comment 11•10 years ago
|
||
Using calc() in tabs.inc.css to make sure we don't miss this in the future
Attachment #8521086 -
Attachment is obsolete: true
Attachment #8521456 -
Flags: review+
Assignee | ||
Comment 12•10 years ago
|
||
Whiteboard: [devedition-polish] → [fixed-in-fx-team][devedition-polish]
Assignee | ||
Comment 13•10 years ago
|
||
(In reply to Matthew N. [:MattN] (UTC+1 until Nov. 22) from comment #10)
> Does this mean we can remove the other workaround for jittering that landed
> yesterday?
I think that was still an issue even with this fix, but I'll double check.
Flags: needinfo?(bgrinstead)
Comment 14•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team][devedition-polish] → [devedition-polish]
Target Milestone: --- → Firefox 36
Assignee | ||
Comment 15•10 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #13)
> (In reply to Matthew N. [:MattN] (UTC+1 until Nov. 22) from comment #10)
> > Does this mean we can remove the other workaround for jittering that landed
> > yesterday?
>
> I think that was still an issue even with this fix, but I'll double check.
Nope, sadly still jittering if I set the width back to 0px even with this fix. It's unfortunate because now I realized that the 2px fix makes the selected tab look a little weird in windows / linux (it's not directly lined up with the side of the browser window anymore).
Flags: needinfo?(bgrinstead)
Comment 16•10 years ago
|
||
Sorry, I thought you realized that was a side-effect.
Comment 17•10 years ago
|
||
Bugday-20141218 :Button still shakes if it`s clicked after it reaches the right edge of FF until navigation arrow buttons appear, after that happens it returns to normal.
Flags: needinfo?(pratyasmitamishra)
Comment 18•10 years ago
|
||
Bugday-20141218 : The button does not shake and behaves as expected.
Comment 19•10 years ago
|
||
Bugday-20141218 : The button does not shake and behaves as expected.
Flags: needinfo?(pratyasmitamishra)
Comment 20•10 years ago
|
||
Bugday-20141218 : The button does not shake and behaves as expected.
You need to log in
before you can comment on or make changes to this bug.
Description
•