anchorToKeyboard doesn't work if the phone is upside down (inverted portrait)
Bug #1384935 reported by
Michael Sheldon
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Confirmed
|
Medium
|
Cris Dywan | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Medium
|
Cris Dywan |
Bug Description
Steps to reproduce
1) Open messaging app
2) Turn the phone upside down (inverted portrait)
3) Click on the "Write a message" field
Expected result:
The field should be above the keyboard
Actual result:
The keyboard covers the field
It seems likely that we might be reporting the keyboard height incorrectly in this orientation, resulting in the anchorToKeyboard feature failing.
Changed in ubuntu-keyboard: | |
status: | New → Confirmed |
assignee: | nobody → Michael Sheldon (michael-sheldon) |
affects: | ubuntu-keyboard (Ubuntu) → ubuntu-ui-toolkit (Ubuntu) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Christian Dywan (kalikiana) |
importance: | Undecided → Medium |
affects: | ubuntu-keyboard → ubuntu-ui-toolkit |
Changed in ubuntu-ui-toolkit: | |
assignee: | Michael Sheldon (michael-sheldon) → Christian Dywan (kalikiana) |
importance: | Undecided → Medium |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
I had this bug report at the back of my head when I glanced at this piece of code just now:
src/Ubuntu/ Components/ 1.3/Orientation Helper. qml:120
if (d.stateAngle === 0 && UbuntuApplicati on.inputMethod. visible && anchorToKeyboard) on.inputMethod. keyboardRectang le.height;
availableHeight -= UbuntuApplicati
This looks like a bug in the UI Toolkit to me. The angle in this case should be 180 but that's not part of the equation.