anchorToKeyboard doesn't work if the phone is upside down (inverted portrait)

Bug #1384935 reported by Michael Sheldon
14
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)
Revision history for this message
Cris Dywan (kalikiana) wrote :

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/OrientationHelper.qml:120

if (d.stateAngle === 0 && UbuntuApplication.inputMethod.visible && anchorToKeyboard)
    availableHeight -= UbuntuApplication.inputMethod.keyboardRectangle.height;

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Cris Dywan (kalikiana)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.