Closed
Bug 1021133
Opened 11 years ago
Closed 11 years ago
Header resizing for long strings fails for some labels
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(blocking-b2g:2.0+, b2g-v2.0 fixed)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: flod, Assigned: mikehenrty)
References
Details
(Whiteboard: [systemsfe])
Attachments
(2 files)
Filing a new, less crowded bug to investigate this.
I flashed my keon with Gecko+Gaia a few minutes ago: header resizing is definitely working, but it's also failing for at least a couple of labels (I'm using xh for testing).
See screenshot: #1 and #3 are truncated, #2 is not, even if it's probably longer.
My only explanation is the hyphen in the string.
This probably doesn't happen on Flame because screen is large enough to fit the original string without resizing it.
Updated•11 years ago
|
Whiteboard: [systemsfe]
Updated•11 years ago
|
blocking-b2g: --- → 2.0+
Assignee | ||
Comment 1•11 years ago
|
||
The issue is that our canvas.measureText function doesn't take into account fontStyle. Headers are all italic, and since italic fonts are slightly wider than normal fonts, there are cases where our re-sizing still produces overflow. I'm patching FontSizeUtils now to use Font Style.
Assignee | ||
Comment 2•11 years ago
|
||
Guillaume will you have a look?
Attachment #8436065 -
Flags: review?(gmarty)
Updated•11 years ago
|
Attachment #8436065 -
Flags: review?(gmarty) → review+
Assignee | ||
Comment 3•11 years ago
|
||
My forked Travis: https://travis-ci.org/mikehenrty/gaia/builds/26989099
Gaia-Try: https://tbpl.mozilla.org/?tree=Gaia-Try&rev=ba0901cd81f9
Waiting for green.
Assignee | ||
Comment 4•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•