[SDK] auto-scroll input fields when OSK visibility changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UX |
Fix Committed
|
Critical
|
Olga Kemmet | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
High
|
Zsombor Egri |
Bug Description
Currently when you select in an input field, it causes the osk to be displayed. If the field is located beneath the osk it is obscured. Currently many of the apps have to write special code to handle the osk visiblilty and handle scrolling of the field. This should be done automatically by the sdk if the app opt's in somehow.
Here is a pointer to code in lp:phone-app that makes the input filed for sending text messages scroll based on osk visibility. Same is repeated in webbrowser-app:
http://
http://
You basically anchor the KeyboardRectangle item to the bottom of your view, and then the contents you want to scroll you anchor to the top of the KeyboardRectangle. This KeyboardRectangle is a normal item that has the size of the virtual keyboard.
When the keyboard is visible it has the height of the keyboard, when the keyboard is hidden, it has a height of 0
UX Solution
The solution identified by Florian above is 100% correct
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Florian Boucault (fboucault) |
tags: | added: text-input |
Changed in ubuntu-ux: | |
assignee: | nobody → Giorgio Venturi (giorgio-venturi) |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit: | |
milestone: | none → 11.07 |
tags: | added: copy-paste |
Changed in ubuntu-ui-toolkit: | |
milestone: | 11.07 → none |
assignee: | Florian Boucault (fboucault) → nobody |
tags: | removed: copy-paste |
description: | updated |
Changed in ubuntu-ux: | |
status: | Triaged → Fix Committed |
no longer affects: | ubuntu-ui-toolkit (Ubuntu) |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Zsombor Egri (zsombi) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
importance: | Undecided → High |
status: | New → Confirmed |
no longer affects: | ubuntu-ui-toolkit |
tags: | added: convergence keyboard osk |
Changed in ubuntu-ux: | |
assignee: | Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet) |
I think renato is also working on this bug. You can see his MP at https:/ /code.launchpad .net/~renatofil ho/ubuntu- ui-toolkit/ fix-keyboard- visibility/ +merge/ 174503