Closed Bug 1211412 Opened 10 years ago Closed 10 years ago

Home panel tabs are misaligned on tablets.

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

All
Android
defect
Not set
normal

Tracking

(firefox43 fixed, firefox44 verified, fennec44+)

VERIFIED FIXED
Firefox 44
Tracking Status
firefox43 --- fixed
firefox44 --- verified
fennec 44+ ---

People

(Reporter: sebastian, Assigned: liuche)

References

Details

Attachments

(3 files)

Attached image now.png
The home panel tabs (-> TabMenuStrip) are misaligned on the Nexus 9. See attached screenshots.
Attached image previously.png
I assume that's a regression from bug 1185002?
Blocks: 1185002
Flags: needinfo?(liuche)
tracking-fennec: --- → ?
Bug 1211412 - Home panel tabs are misaligned on tablets. r=sebastian
Attachment #8669840 - Flags: review?(s.kaspari)
This patch adds another attribute for whether the titles should wrap to the content or fill the titlebar. I'll need someone to test it, however - Sebastian, if you have the time, would you do that? I've uploaded an apk here, if it's easier: http://people.mozilla.org/~liuche/bug-1211412/1-fillTitlebar.apk
Assignee: nobody → liuche
Flags: needinfo?(liuche) → needinfo?(s.kaspari)
Attachment #8669840 - Flags: review?(s.kaspari) → review+
Comment on attachment 8669840 [details] MozReview Request: Bug 1211412 - Home panel tabs are misaligned on tablets. r=sebastian https://reviewboard.mozilla.org/r/21265/#review19223 Awesome! Introducing a new attribute is such a smart solution. \o/ ::: mobile/android/base/home/TabMenuStripLayout.java:76 (Diff revision 1) > + button.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT, 1.0f)); Shouldn't we set width to 0(dp) like we did in the XML?
Tested it on the N9 and everything looks great again. :)
Flags: needinfo?(s.kaspari)
> ::: mobile/android/base/home/TabMenuStripLayout.java:76 > (Diff revision 1) > > + button.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT, 1.0f)); > > Shouldn't we set width to 0(dp) like we did in the XML? Yeah...unfortunately LayoutParams are params instead of dimensions/values and you can't mix the two.
(In reply to Chenxia Liu [:liuche] from comment #7) > Yeah...unfortunately LayoutParams are params instead of dimensions/values > and you can't mix the two. Hu? But the constructor of LayoutParams accepts constants (WRAP_CONTENT/MATCH_PARENT) as well as fixed sizes?
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Verified as fixed on latest Nightly build (44.0a1 / 2015-10-08) on Nexus 9 with Android 5.1.1
tracking-fennec: ? → 44+
No longer blocks: 1185002
Depends on: 1185002
Comment on attachment 8669840 [details] MozReview Request: Bug 1211412 - Home panel tabs are misaligned on tablets. r=sebastian Approval Request Comment [Feature/regressing bug #]: Bug 1185002 [User impact if declined]: Titlebar on tablets has too much spacing [Describe test coverage new/current, TreeHerder]: baked on nightly for a week, green Aurora try run https://treeherder.mozilla.org/#/jobs?repo=try&revision=bf090ef5130f [Risks and why]: low, baked on Nightly [String/UUID change made/needed]: none
Attachment #8669840 - Flags: approval-mozilla-aurora?
Looks like we need this as part of the work for bug 1185002 which we're uplifting to aurora.
Just realized this doesn't affect 42. This would be good to verify on affected tablets.
Flags: qe-verify+
Comment on attachment 8669840 [details] MozReview Request: Bug 1211412 - Home panel tabs are misaligned on tablets. r=sebastian UI tweak, tested ok on nightly, ok to uplift to aurora.
Attachment #8669840 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Status: RESOLVED → VERIFIED
Flags: qe-verify+
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: