Closed
Bug 1394361
Opened 7 years ago
Closed 7 years ago
(photon) tab title is cropped and not align to close button
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Firefox for Android Graveyard
Theme and Visual Design
Unspecified
Android
Tracking
(firefox57 verified)
VERIFIED
FIXED
Firefox 57
Tracking | Status | |
---|---|---|
firefox57 | --- | verified |
People
(Reporter: jwu, Assigned: cnevinchen)
References
Details
(Whiteboard: [FNC][SPT57.3][INT])
Attachments
(2 files)
In Pixel C, the tab title in tabs tray is cropped and not align to the close button. Check the attachment for screenshot, I guess this is a side-effect because of the fix of bug 1390670. :nechen, would you like to take a look?
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(cnevinchen)
Comment 1•7 years ago
|
||
(In reply to Jing-wei Wu [:jwu] from comment #0) > In Pixel C, the tab title in tabs tray is cropped and not align to the close > button. I don't see the misalignment on my phone, but the title cropping issue is probably generic and not restricted to just the Pixel C.
Comment 2•7 years ago
|
||
Note that in fact we already have some code that uses a TouchDelegate to increase the hit target size of the close button: https://dxr.mozilla.org/mozilla-central/rev/d10c97627b51a226e19d0fa801201897fe1932f6/mobile/android/base/java/org/mozilla/gecko/tabs/TabsLayoutItemView.java#103 So I'd say the correct course of action would be backing out bug 1390670 again and then verifying that growCloseButtonHitArea() is working as intended (and maybe experimenting with tweaking the target hit area size from 40 dp to 48 dp).
Blocks: 1390670
Comment 3•7 years ago
|
||
Testing e.g. on Release with the help of the "Pointer location" and "Show layout bounds" developer options, that code does seem to be working as intended - the hit target area of the close button is extended to a rectangle measuring 40 x 40 dp from the outer edges of the TabsLayoutItemView.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → cnevinchen
Flags: needinfo?(cnevinchen)
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
(In reply to Jan Henning [:JanH] from comment #2) > So I'd say the correct course of action would be backing out bug 1390670 > again and then verifying that growCloseButtonHitArea() is working as > intended (and maybe experimenting with tweaking the target hit area size > from 40 dp to 48 dp). Although this has the drawback of not increasing the hit target size for "Touch to explore" a11y mode. Since as far as I've read, "Touch to explore" works through hover events, it might be possible to implement a "HoverDelegate" to redirect hover events as well?
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8902132 [details] Bug 1394361 - Tab title is cropped and not align to close button. https://reviewboard.mozilla.org/r/173578/#review179354
Attachment #8902132 -
Flags: review?(topwu.tw) → review+
Assignee | ||
Comment 9•7 years ago
|
||
> (In reply to Jan Henning [:JanH] from comment #2)
> Although this has the drawback of not increasing the hit target size for
> "Touch to explore" a11y mode. Since as far as I've read, "Touch to explore"
> works through hover events, it might be possible to implement a
> "HoverDelegate" to redirect hover events as well?
Let's fix the UI lauyout in this bug. And make a follow up bug for a11y issue if any?
Flags: needinfo?(jh+bugzilla)
Comment 10•7 years ago
|
||
The whole UI business is precisely because of a11y in the first place - but sure, go ahead. I'll give my idea a try and report back about its success later.
Flags: needinfo?(jh+bugzilla)
Comment 11•7 years ago
|
||
Pushed by nechen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/56a51abed4ff Tab title is cropped and not align to close button. r=jwu
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/56a51abed4ff
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Comment 13•7 years ago
|
||
Verified as fixed in Nightly 57 (2017-08-31). Device: HTC Nexus 9 (Android 7.1.1)
Status: RESOLVED → VERIFIED
Comment 14•7 years ago
|
||
(In reply to Oana Horvath from comment #13) > Verified For certain values of "Verified" - the tab title is still cropped.
Updated•7 years ago
|
Whiteboard: [FNC][SPT57.3][INT]
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•