Closed
Bug 994725
Opened 11 years ago
Closed 11 years ago
Screen spacing is off on Firefox Account sign in screen in FTE on device
Categories
(Firefox OS Graveyard :: FxA, defect, P2)
Tracking
(b2g-v2.0 fixed)
RESOLVED
FIXED
2.0 S2 (23may)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: njpark, Assigned: jhirsch)
References
Details
(Whiteboard: [qa+])
Attachments
(3 files)
The next button is not showing properly (as per screenshot)
STR:
- Flash the phone, and launch first time experience
- Select to create a new firefox account
- From the setup dialog, a new 'Firefox Account' window shows up
Expected:
The layouts should not exceed the screen real estate.
Actual:
Next button is cut off.
Reporter | ||
Updated•11 years ago
|
Whiteboard: [qa+]
Reporter | ||
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 2•11 years ago
|
||
Well, on my hamachi with today's pvt build, the spacing errors are *almost* totally fixed. See the second screenshot.
There is still some slight spacing problem, it looks like some kind of funny border on the top and left sides of the overlay. Also, the 'Next' button isn't quite centered.
I don't know what the underlying bug is that's causing this, which is a bit frustrating.
Anyhow, hopefully this resolves itself in the next day or two. Going to wait and see.
Assignee | ||
Comment 3•11 years ago
|
||
Hmm, maybe I am wrong. now I can repro the error again?!?!
Working on understanding what's happening here
Assignee | ||
Comment 4•11 years ago
|
||
Sam volunteered to grab this, marking as assigned so I don't forget
Assignee: nobody → spenrose
Comment 5•11 years ago
|
||
It's also off on the Flame.
Updated•11 years ago
|
Summary: [Buri] Screen spacing is off on Firefox Account sign in screen in FTE → Screen spacing is off on Firefox Account sign in screen in FTE on device
Assignee | ||
Comment 6•11 years ago
|
||
Pretty sure this is the source of the bug, need to test more thoroughly to be sure:
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/style/firefox_account/firefox_account_container.css#L8-L15
Assignee | ||
Comment 7•11 years ago
|
||
Yup, pretty sure that's it. Opening a PR, sorry Sam, found this while fixing something else :-)
Assignee: spenrose → 6a68
Assignee | ||
Comment 8•11 years ago
|
||
I'm not sure why this was needed in the past, but it no longer fixes the FxA panel height in FTU - it causes it to break.
Tested on Hamachi.
Attachment #8419809 -
Flags: review?(ferjmoreno)
Comment 9•11 years ago
|
||
Comment on attachment 8419809 [details] [review]
Github PR 19086
Thanks Jared. I think Borja is a better reviewer for this change :)
Attachment #8419809 -
Flags: review?(ferjmoreno) → review?(borja.bugzilla)
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8419809 [details] [review]
Github PR 19086
There is a deeper bug here.
Even with the CSS change, if I open the FxA dialog in FTU, then close it, and reopen from settings, it's too tall. Opening/closing the keyboard always fixes the height problem, so the dialog isn't getting reflowed when it is reloaded.
The dialog inherits from SystemDialog. The LayoutManager is supposed to manage height for SystemDialogs by triggering a reflow when it's opened, but in our case, this isn't working.
Digging into the deeper bug, unsetting r? for now.
Attachment #8419809 -
Flags: review?(borja.bugzilla)
Assignee | ||
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Comment 12•11 years ago
|
||
Aha! The underlying bug was in how SystemDialog.updateHeight() invoked LayoutManager's height getter.
This seems weird to me, but window.LayoutManager is the constructor, and window.layoutManager is the actual manager. I don't understand the value in exporting the constructor to the global scope, but maybe it's something related to unit tests?
At any rate, SystemDialog was attempting to reflow itself by setting its height to LayoutManager.height + 'px'. Since that's 'undefinedpx', Gecko was discarding the bad instruction.
I've updated SystemDialog to get the height from window.layoutManager.height. It seems weird to me to refer to a global that's lowerCamelCased, so I explicitly included the window object, to signify what's going on.
Since Alive did the review for the creation of SystemDialog (in bug 964653), I'll see if he can review.
Still going to remove the FTU CSS, since we don't need it.
Assignee | ||
Comment 13•11 years ago
|
||
BTW, I have used this test to reproduce the bug and the fix on hamachi:
1. Open FTU
2. Inside FTU, click the FxA 'Create Account or Sign In' button, opening the FxA dialog.
3. Close out the dialog.
4. Open Settings > Firefox Accounts
5. Click 'Create Account or Sign In' to open the dialog
6. Dialog is too tall
7. If you then trigger a reflow by clicking in and out of the email field, so that the keyboard is shown and hidden, the dialog will shrink to the correct height.
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8419809 [details] [review]
Github PR 19086
Hey Alive,
I've found a bug in the SystemDialog invocation of LayoutManager. It's a very small patch, do you have time for a review? (You looked at the original SystemDialog commit in bug 964653, so I thought you might be a good reviewer for this fix.)
The STR are in c13, and a discussion of the problem and solution are in c12.
Thanks!
Jared
(also setting ni? as mentioned in your bugzilla profile)
Attachment #8419809 -
Flags: review?(alive)
Flags: needinfo?(alive)
Comment 15•11 years ago
|
||
Comment on attachment 8419809 [details] [review]
Github PR 19086
Sad typo...Thank you very much to catch and fix!
Attachment #8419809 -
Flags: review?(alive) → review+
Flags: needinfo?(alive)
Assignee | ||
Comment 16•11 years ago
|
||
Thanks Alive!
master: https://github.com/mozilla-b2g/gaia/commit/464bcb9e91dca6196e4daf6a9d1b2c510050d716
RyanVM, I'm not sure if I should modify the blocking-b2g:2.0? flag. I've found a number of wiki pages on what the tracking flags mean, but still a bit mystified. Anything I need to do here?
Status: NEW → RESOLVED
Closed: 11 years ago
status-b2g-v2.0:
--- → fixed
Flags: needinfo?(ryanvm)
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
Comment 17•11 years ago
|
||
Only B2G release management should be changing the blocking flags. Everything else looks fine here :)
Flags: needinfo?(ryanvm)
Updated•11 years ago
|
blocking-b2g: 2.0? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•