Closed Bug 825176 Opened 13 years ago Closed 13 years ago

[Tablet] The forward button is hidden when closing the Tab Drawer

Categories

(Firefox for Android Graveyard :: Theme and Visual Design, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox18 unaffected, firefox19 unaffected, firefox20 verified, fennec20+)

VERIFIED FIXED
Firefox 20
Tracking Status
firefox18 --- unaffected
firefox19 --- unaffected
firefox20 --- verified
fennec 20+ ---

People

(Reporter: AdrianT, Assigned: wesj)

Details

(Keywords: regression)

Attachments

(1 file)

Nightly 20.0a1 2012-12-27 Asus EEE Transformer TF101 (Android 4.0.3) Steps to reproduce: 1) Open 3 different pages in the same tab a a new one in a second tab 2) In the first tab go back to the second page so you have both the back and forward buttons displayed 3) Close the Tabs Drawer Expected results: The Tab Drawer is closed and the URL bar controls are not affected Actual results: The Forward button is hidden and a white background "leaks" in the Tab Count indicator area. The forward button does not reappear unless the user moves to a different tab and back and the Tab Drawer is opened. Note: This is probably caused buy the new Tab Drawer UI
Assignee: nobody → sriram
Component: General → Theme and Visual Design
Wes was working on hiding the forward button.
I think something is missing from the steps to reproduce? The tabs drawer isn't open when I go to step 3. I can open two tabs, one with forward hidden and one with it showing. When I switch between them everything updates correctly for me, so I must be missing something.
Oh wait. I'm on a Nexus 7. (Charing my 10" tablet). I'll try there in a bit.
Ahh. I can reproduce this now.
Attached patch Patch v1Splinter Review
The tabs animation adjusts the translation of the forward button. So does the hiding animation. We can either make them aware of each other (which is a pretty simple patch that will fall apart next time we do this I assume), or adjust the real margin of the forward button in its transition, which is what I'm doing here.
Assignee: sriram → wjohnston
Attachment #696440 - Flags: review?(lucasr.at.mozilla)
Comment on attachment 696440 [details] [diff] [review] Patch v1 Since lucas is on vacation, moving review.
Attachment #696440 - Flags: review?(lucasr.at.mozilla) → review?(sriram)
Comment on attachment 696440 [details] [diff] [review] Patch v1 Review of attachment 696440 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me. ::: mobile/android/base/BrowserToolbar.java @@ +1041,5 @@ > } > + > + ViewGroup.MarginLayoutParams layoutParams = > + (ViewGroup.MarginLayoutParams)mForward.getLayoutParams(); > + layoutParams.leftMargin = mDefaultForwardMargin + (mForward.isEnabled() ? mForward.getWidth()/2 : 0); "width" can be used here as it is final. @@ +1059,3 @@ > anim.attach(mForward, > PropertyAnimator.Property.TRANSLATION_X, > + -1*width); "-width" would do.
Attachment #696440 - Flags: review?(sriram) → review+
Backed out for Android startup crashes on advice of others. http://hg.mozilla.org/integration/mozilla-inbound/rev/f0481ac71e08
Whoops. Moved the dimens to the global layout/dimens.xml file instead. It will be ignored on other form factors. https://hg.mozilla.org/integration/mozilla-inbound/rev/83b7d05f5928
tracking-fennec: ? → 20+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Issue is no longer reproducible on Aurora 20.0a2 2013-01-10 or Nightly 21.0a1 2013-01-10 on the Asus EEE Transformers TF101 (Android 4.0.3). Marking the issue as verified
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: