[SDK] auto-scroll input fields when OSK visibility changes
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu UX |
Critical
|
Olga Kemmet | ||
| | ubuntu-ui-toolkit (Ubuntu) |
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) |
| Nekhelesh Ramananthan (nik90) wrote : | #1 |
| Florian Boucault (fboucault) wrote : | #2 |
Actually what Renato did does not fix this. It will certainly help though.
| tags: | added: text-input |
| Changed in ubuntu-ux: | |
| assignee: | nobody → Giorgio Venturi (giorgio-venturi) |
| status: | New → Triaged |
| importance: | Undecided → High |
Yes, I agree, this is an important bug and it should be fixed asap
| summary: |
- auto-scroll input fields when OSK visibility changes + [SDK] auto-scroll input fields when OSK visibility changes |
| Changed in ubuntu-ux: | |
| importance: | High → Critical |
| 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 |
| Zsombor Egri (zsombi) wrote : | #4 |
Similar situation is valid also when a component focused using TAB/Shift+TAB key falls outside of the visible area. As all focusable components are derived from StyledItem, I feel we can implant the "scrolling" functionality into that component.
| 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