Typing a long message or contact-name in SMS app will push the "send" / "add contact" buttons offscreen



5 years ago
4 years ago


(Reporter: dholbert, Assigned: dholbert)


(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)



(2 attachments)



5 years ago
 1. Open SMS app
 2. Tap the "new message" icon near upper-right
 3. Type "aaaaaaaaaaaaaaaaaaaaa..." [etc] until you overflow the available horizontal space

ACTUAL RESULTS: The "+" / "Send" button at the right of the field is pushed offscreen.

This is likely due to bug 984711 / bug 1037177 establishing a minimum size for flex items, based (in part) on the item's min-content size.

We can override it by using "min-width:0" in the right place (on the flex item that contains these text fields).

(Alternately, setting a "max-width" or "width" would also work, as would putting "overflow-x: scroll", per http://dev.w3.org/csswg/css-flexbox/#min-size-auto -- but those changes would all be more likely to affect the layout in other ways.)

Discovered when trying to repro bug 1042887 in up-to-date gaia with latest b2g desktop build from http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/.


5 years ago
Blocks: 1043520

Comment 1

5 years ago
Created attachment 8461742 [details] [diff] [review]

This patch fixes the issue (in both the contact box and the message-body box), though it's a bit heavy-handed (targeting all elements).

Really this should just be on 2 specific CSS rules, probably. (I just don't know which exact 2 yet.)
We can probably handle it along with bug 1042887. The SMS team can take it from here if you want!
[Blocking Requested - why for this release]:
blocking-b2g: --- → 2.1?

Comment 4

5 years ago
Sounds good to me! Let me know if you need any more from me here.

Comment 5

5 years ago
Created attachment 8461917 [details] [review]
pull request

Actually, with the method in bug 1042887 comment 13, I was able to quickly track down the flex items that need "min-width:0" using firefox's devtools, so I'll go ahead and take this.

Pull request: https://github.com/mozilla-b2g/gaia/pull/22127
Assignee: nobody → dholbert
Attachment #8461917 - Flags: review?(azasypkin)
See Also: → bug 1042887
Comment on attachment 8461917 [details] [review]
pull request

r=me with a one more "min-width: 0;" for the message body (commented on GitHub).

Attachment #8461917 - Flags: review?(azasypkin) → review+

Comment 7

5 years ago
Updated the pull request with that change. Thanks!
Since it's r+, feel free to merge yourself Daniel! Or set checkin-needed if you don't have the rights, when you're ready :)

Comment 9

5 years ago
Thanks! I don't believe I have merge rights for mozilla's github projects (or if I do, I wouldn't trust myself to use them properly, w/ my current git/github comfortability). :)

Hence, using checkin-needed.
Keywords: checkin-needed
Master: https://github.com/mozilla-b2g/gaia/commit/a67cd9ee28d3b0456e323bea77a6dfbc69dc98b3
Last Resolved: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
blocking-b2g: 2.1? → ---
You need to log in before you can comment on or make changes to this bug.