diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-01-03 18:03:17 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-01-06 16:29:48 +0000 |
commit | 3c99bddb8469416b0042db6a39ec2e9d82b147a1 (patch) | |
tree | e6253c0ee534ba6de59a820ab8babdc51958ef1d /header.BSD | |
parent | 34f82b8abcb279542b6350e70609c549e39caafb (diff) |
iOS: Center IM cursor rectangle within available space when showing keyboard
The cursor rectangle is translated into screen coordinates, and compared
against the screen geometry after subtracting the future keyboard rect
(which is already in screen coordinates). If the two do not overlap
completely, the root view is shifted accordingly so that the cursor
rectangle is placed in the center of the available space.
A future improvement would be to first check if centering the input
item's clip rectangle would bring the cursor within the available
geometry, before falling back to using the cursor rectangle. This
would look better for multi-line text inputs where the cursor is
not in the center.
Task-number: QTBUG-46747
Change-Id: If9b551b4d297e2a1f6d7f84b81628fa65c08edfd
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'header.BSD')
0 files changed, 0 insertions, 0 deletions