Closed Bug 1107048 Opened 10 years ago Closed 10 years ago

[FTE][RTL] Sim Manager SIM1 operator takes more vertical space than SIM2 operator

Categories

(Firefox OS Graveyard :: Gaia::First Time Experience, defect)

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.2 verified)

VERIFIED FIXED
Tracking Status
b2g-v2.2 --- verified

People

(Reporter: fcampo, Assigned: sfoster)

References

Details

(Whiteboard: [systemsfe])

Attachments

(6 files, 2 obsolete files)

Attached image Sim Manager
I don't think it's specific for RTL but for any language that uses bigger descender heights on its font, but it's easier to see when changing to a RTL language
Cant think of a good test for this. Fixes odd/variable heights in both LTR/RTL
Attachment #8535897 - Flags: review?(fernando.campo)
Assignee: nobody → sfoster
Blocks: FTE-rtl
Comment on attachment 8535897 [details] [review] Flex-box the SIM manager layout Sadly, applying the changes result on the SIM images hidden (because of the flex property). Removing it to show the images shows also that the height difference is still there (on Arabic language). One possible solution would be to align the SIM details top with the image bottom (enough distance for big descenders on SIM-title), but that would need UX approval.
Attachment #8535897 - Flags: review?(fernando.campo) → review-
Attached image flex on off comparison
Comment on attachment 8535897 [details] [review] Flex-box the SIM manager layout I've updated the PR with tweaks to the CSS. I actually wasn't able to repro your screenshot, but I did spot a couple flex-related mistakes. The updated patch seems to do reasonably well with both RTL/LTR and different line-heights and lengths. Due to the tall line-height forced by Arabic's diacritics, getting the image lined up with the first line of text is not trivial. I think this patch makes a reasonable compromise - I'll attach a screenshot.
Attachment #8535897 - Flags: review- → review?(fernando.campo)
Attachment #8536707 - Attachment is obsolete: true
Comment on attachment 8535897 [details] [review] Flex-box the SIM manager layout Yeah, this time working without problems. Not sure why I had the image hidden last time, but now I see it. Still discrepancies on the height for arabic, but I agree with you that to change that is not trivial, and we shouldn't be blocking on it. If UX is happy with the outcome, I'm happy too :)
Attachment #8535897 - Flags: review?(fernando.campo) → review+
Comment on attachment 8536712 [details] Flex patch applied - en-us, arabic and accented english screenshots Does this look ok to you Eric? See comments, the main question is if the alignment of the icon to the first line is ok as-is.
Attachment #8536712 - Flags: ui-review?(epang)
Attached image fte sim layout.png
Hey Sam, I've taken a look at your screenshots and have a few notes to clean up the layout and alignment. 1. Vertically Center SIM card icons 2. SIM details should be left/right aligned with title 3. Spacing under SIM with Arabic character (4th screen) is inconsistent More detail can be found in the attached image. I've included what the screens will look like with the refinements at the bottom. Let me know if you have any questions! Sam, once these updates are made can you flag me for ui review again? Thanks!
Flags: needinfo?(sfoster)
Comment on attachment 8536712 [details] Flex patch applied - en-us, arabic and accented english screenshots R- based on my previous comments, flag me again when ready, thanks Sam!
Attachment #8536712 - Flags: ui-review?(epang) → ui-review-
Updated to fix centered vertical alignment of icons and the alignment of SIM details. On the arabic screen, because of the mix of arabic and latin characters, the height of the line box is larger. If you draw a line from the bottom of the arabic letters you'll see the spacing is correct. I don't think we can fix this, its an artifact of the bidi/mixed-height content in that SIM label.
Attachment #8536712 - Attachment is obsolete: true
Flags: needinfo?(sfoster)
Attachment #8537980 - Flags: ui-review?(epang)
Comment on attachment 8537980 [details] Flex patch applied - en-us, arabic and accented english screenshots Thanks for updating the screens Sam! Too bad we can't align to the sim text for Arabic text. Regardless this looks much better. R+
Attachment #8537980 - Flags: ui-review?(epang) → ui-review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe]
Keywords: verifyme
According comment 11 and 12 This issue verified successfully on Flame 2.2 Gaia-Rev f5b3d1b6cfa3e702033f613915ae637cb735cbfb Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/5d7497ce4cc7 Build-ID 20150120002507 Version 37.0a2 Device-Name flame FW-Release 4.4.2 Refer to picture
Status: RESOLVED → VERIFIED
Keywords: verifyme
Attached image 2015-01-20-18-22-35.png
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: