Closed
Bug 884703
Opened 11 years ago
Closed 11 years ago
[keyboard] A and L keys are the wrong size when keyboard goes to landscape mode
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: djf, Assigned: janjongboom)
References
Details
Attachments
(2 files)
21.38 KB,
image/png
|
Details | |
46 bytes,
patch
|
rudyl
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce: 1) Use a master build. I don't think this bug affects v1-train 2) Open the browser 3) Tap in the URL bar so that the keyboard appears 4) Rotate the phone into landscape mode 5) When the keyboard converts to its landscape layout, notice that the A and L keys are too narrow. I think this is a regression caused by bug 876598.
Reporter | ||
Comment 1•11 years ago
|
||
Setting needinfo for Jan and Rudy: do either of you want to take this bug?
Flags: needinfo?(rlu)
Flags: needinfo?(janjongboom)
Comment 2•11 years ago
|
||
Yes, I will take a look if Jan does not beat me to it.
Updated•11 years ago
|
Assignee: nobody → rlu
Flags: needinfo?(rlu)
Reporter | ||
Comment 3•11 years ago
|
||
Note that bug 882954 is also a regression caused by the same bug. I've fixed that bug and have a patch awaiting Jan's review, so work on this bug should probably also take the patch on bug 882954 into account.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(janjongboom)
Assignee | ||
Updated•11 years ago
|
Assignee: rlu → janjongboom
Assignee | ||
Comment 4•11 years ago
|
||
When rotating we only apply resizeUI and don't re-render the whole UI. Therefore the style.width property on a visual key is still set and we get the value derived from that back in `visualKey.offsetWidth`. This patch removes the width before resizing the keys. The reason I don't do it inline is because it triggers a reflow for every key we apply this to, so rather do that at the beginning. Tests for this change are in https://github.com/mozilla-b2g/gaia/pull/10532.
Attachment #767125 -
Flags: review?(rlu)
Comment 5•11 years ago
|
||
Comment on attachment 767125 [details] [diff] [review] Patch Looks pretty good to me, r+. Thanks for your support on looking into keyboard issues.
Attachment #767125 -
Flags: review?(rlu) → review+
Assignee | ||
Comment 6•11 years ago
|
||
You're welcome. Landed in https://github.com/mozilla-b2g/gaia/commit/4ff08488db95be91f7540d8ed156da320ef8196c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•