Closed Bug 875690 Opened 11 years ago Closed 11 years ago

[MMS] [UX] Thread view. Wrong alignment of elements

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 verified)

VERIFIED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- verified

People

(Reporter: vicky, Assigned: greg)

References

Details

Attachments

(5 files)

Elements inside the bubble need to be adjusted alignment wise.
Please take a look at this spec for more detail:

https://bug870950.bugzilla.mozilla.org/attachment.cgi?id=753321
Blocks: 872514
:vpg@tid.es Can you please clarify what "left justified but right aligned" means? Justified is a type of alignment. I think I have an idea of what is desired, so I'll start working on it as I understand it!
Assignee: nobody → greg
Someone has made some changes to this since the screenshot so I'm attaching a new one.
Attached image Current screen shot
Attached patch Pull RequestSplinter Review
Attachment #755573 - Flags: review?(gnarf37)
Attachment #755573 - Flags: review?(felash)
Attachment #755573 - Flags: review?(fbsc)
Assuming the current screen shot looks good, the only change that I had to make is the font size. Pull request reflects this.
Comment on attachment 755573 [details] [diff] [review]
Pull Request

Looks good to me, since this is to align with victoria's spec, I'd like her to confirm this meets her spec.  Check the screenshots attached.
Attachment #755573 - Flags: review?(gnarf37) → review+
Requesting leo+ - This is a UX issue for new features in 1.1
blocking-b2g: --- → leo?
blocking-b2g: leo? → leo+
Hi Victoria, can you confirm if the patch is ok? 
Thanks a lot!
Flags: needinfo?(vpg)
This looks wrong: https://bug875690.bugzilla.mozilla.org/attachment.cgi?id=755589 
1. The text in the white bubble should be aligned to the right margin
2. The Margin in the white bubble is wrong, the photo and text should line up with the end of the orange bubble. 
See attachment with visual notes.
Flags: needinfo?(vpg)
(In reply to greg from comment #1)
> :vpg@tid.es Can you please clarify what "left justified but right aligned"
> means? Justified is a type of alignment. I think I have an idea of what is
> desired, so I'll start working on it as I understand it!

It means that the text is justified left as a regular norm of reading but the overall text box sticks to the right margin as the image does.
So, if you have a short text the text box being attached to the right margin will make the bubble shorter from the left.
I hope I am making myself clear...
Make sure margins are 4 rem from screen border in the right hand side of the white bubble and 4 rem in the left hand side of the orange bubble.

You can find the measurements here: https://www.dropbox.com/s/25mz65qfqk631iz/SMS.MMS_measurements.png
Comment on attachment 755573 [details] [diff] [review]
Pull Request

as far as I understand, this needs some work and I won't be there anymore to review, so I'm removing myself here.
Attachment #755573 - Flags: review?(felash)
"1. The text in the white bubble should be aligned to the right margin"

:jugglinmike and I just spent a good amount of time trying to describe this issue in words, but it's a very esoteric and subtle issue. If you want to get on Skype to further clarify the issue that might make it easier. Having said that, we'll try to explain it in text here.

I understand what you're saying. However, this is not possible with CSS. In order for text wrapping to take place, the container has to grow to its maximum width. Once the container is at this width, each line will begin at the leftmost position of the container (thanks to the text-alignment). This will leave space on the right where the word that wrapped onto the next line could not fit. This prevents the right side of the text from aligning with the image below it as you described.

"2. The Margin in the white bubble is wrong, the photo and text should line up with the end of the orange bubble."

That helps me understand this issue, I will fix this problem.
Flags: needinfo?(vpg)
Another note: the alignment of the white and orange bubbles will only occur when the orange bubble is at its maximum size (when there is enough content for the text to wrap). But I have set it up so they are perfectly aligned in that case, so hopefully that does the trick!
Comment on attachment 755573 [details] [diff] [review]
Pull Request

please ask for new review flags when pull is updated
Attachment #755573 - Flags: review?(fbsc)
Attachment #755573 - Flags: review+
Hi Greg,
Is there any update here? Could I help u here?
:borjasalguero all that is needed is a response from :vpg@tid.es. I believe this is a case where we can't make it look exactly like the design mock but it is as close as is realistic and not "broken" per se.
(In reply to greg from comment #16)
> "1. The text in the white bubble should be aligned to the right margin"
> 
> :jugglinmike and I just spent a good amount of time trying to describe this
> issue in words, but it's a very esoteric and subtle issue. If you want to
> get on Skype to further clarify the issue that might make it easier. Having
> said that, we'll try to explain it in text here.
> 
> I understand what you're saying. However, this is not possible with CSS. In
> order for text wrapping to take place, the container has to grow to its
> maximum width. Once the container is at this width, each line will begin at
> the leftmost position of the container (thanks to the text-alignment). This
> will leave space on the right where the word that wrapped onto the next line
> could not fit. This prevents the right side of the text from aligning with
> the image below it as you described.
> 
> "2. The Margin in the white bubble is wrong, the photo and text should line
> up with the end of the orange bubble."
> 
> That helps me understand this issue, I will fix this problem.

Hi Greg,
I understand that a text box is generated and grows until reaching the maximum width, stays in that size and when text is wrapped a blank space is generated there. I think you cannot do anything more about it, right?
Flags: needinfo?(vpg)
:vpg@tid.es Correct, I think the current version is perfect!
Comment on attachment 755573 [details] [diff] [review]
Pull Request

r=me seems everyone is agreed
Attachment #755573 - Flags: review+
master: https://github.com/mozilla-b2g/gaia/commit/7c21892f8bc7c348a24bef5256ee745f78f5300c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Uplifted 7c21892f8bc7c348a24bef5256ee745f78f5300c to:
v1-train: 9f0326e4cae2a1c76a06ccc27c01fa47b1808048
Flags: in-moztrap-
This issue does not repro anymore. The user is able to see the text aligned as per the attachment in Comment 11.

Verified on 
Leo Build ID: 20130807071207
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/11bb1b0eefff
Gaia: 60ca81600a080dae33058b0692ecaa213556c926
Platform Version: 18.1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: