Closed Bug 748434 Opened 12 years ago Closed 12 years ago

Text Cut Off in Buttons, Mixed Font Sizes

Categories

(Firefox for Android Graveyard :: General, defect, P1)

x86
Android
defect

Tracking

(firefox14 verified, firefox15 verified, firefox16 verified, blocking-fennec1.0 +)

VERIFIED FIXED
Firefox 16
Tracking Status
firefox14 --- verified
firefox15 --- verified
firefox16 --- verified
blocking-fennec1.0 --- +

People

(Reporter: damons, Assigned: dbaron)

References

Details

(Whiteboard: readability [testday-20120608] MTD)

Attachments

(4 files)

Visit Bugzilla, attempt to log in, Buttons contain text that is cut off.

See attached screenshot

Galaxy Nexus
14.0a1 (2012-04-24) Nightly
Whiteboard: readability
Whiteboard: readability → readability, DUPEME
Seems like either we should (a) be making the button bigger or (b) not inflating it because it's constrained width.
Whiteboard: readability, DUPEME → readability
(that should have been bug 708175, but we should see why it wasn't fixed here)
also, I don't think this is related to ycombinator. Needs some investigation.
blocking-fennec1.0: --- → ?
Assignee: nobody → sjohnson
blocking-fennec1.0: ? → +
Priority: -- → P1
This issue still occurs on the latest Nightly build.

--
Firefox 15.0a1 (2012-05-23)
Device: Galaxy Nexus
OS: Android 4.0.2
Blocks: 708175
Attached file reduced test case
Here's a reduced test case for this that I created. If we disable the table code, the problem goes away. So, this could be a case of the table cell being a font inflation container, when we really want the button itself to be a font inflation container.
Blocks need to check whether the inflation-disabled-for-intrinsic-width state matches the state that was used for their cached min width before using their cached min width (and need to use a bit to store that).  I don't think anything else other than blocks needs this because blocks are the only things inside of form controls that cache intrinsic widths.
Assignee: sjohnson → dbaron
Backed out:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d5d6b37f2e13
because the test is failing once I remove my local work for bug 707195 from my tree.  I have no idea why it's making any difference, though.
Relanded:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d24460a6ee1c
with a workaround as described in the comment in the test, and also an added comment in nsFontInflationData on the same issue.
Depends on: 761996
(In reply to David Baron [:dbaron] from comment #14)
> Relanded:
> https://hg.mozilla.org/integration/mozilla-inbound/rev/d24460a6ee1c
> with a workaround as described in the comment in the test, and also an added
> comment in nsFontInflationData on the same issue.

https://hg.mozilla.org/mozilla-central/rev/d24460a6ee1c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Need FF14 (beta) approval request and uplift on this one.
Comment on attachment 630338 [details] [diff] [review]
patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 706609 (being incomplete)
User impact if declined: text gets cut off in buttons that are inside things that size intrinsically, such as tables and some floats
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): slight performance risk, though probably not significant; also just general risk from adding anything new (though again relatively low)
String or UUID changes made by this patch: none
Attachment #630338 - Flags: approval-mozilla-beta?
Attachment #630338 - Flags: approval-mozilla-aurora?
Attachment #630338 - Flags: approval-mozilla-beta?
Attachment #630338 - Flags: approval-mozilla-beta+
Attachment #630338 - Flags: approval-mozilla-aurora?
Attachment #630338 - Flags: approval-mozilla-aurora+
I can verify fixed in Galaxy S2 with Android 2.3.4 and the latest Firebox Beta
Whiteboard: readability → readability [testday-20120608] MTD
I'm still seeing cases of text cut off in buttons and mixed font sizes, so I filed bug 766172 and bug 766170.
There are still issues regarding the font inflation on regular text (covered by other bugs), but the text is no longer cut off in buttons. Closing bug as verified fixed on:

--
Firefox 16.0a1 (2012-07-09)
Firefox 15.0a2 (2012-07-09)
Firefox 14 Beta

Device: Galaxy Nexus
OS: Android 4.0.4
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: