Comment 2 for bug 1182178

Revision history for this message
Olivier Tilloy (osomon) wrote :

I’ve added some logging to the KeyboardRectangle component that tracks the size of the OSK, and it appears that when the OSK is invoked while in landscape mode, the width and height of Qt.inputMethod.keyboardRectangle are inverted: on the Galaxy Nexus that has a screen resolution of 720×1280, the keyboard rectangle is reported as QRectF(360, 0, 360, 1280).

I could work around this behaviour by detecting the current orientation and swapping the width and height when in landscape mode, but I believe this is a bug in either maliit-keyboard or Qt itself that should be fixed there, otherwise all applications will have to work around it in a similar way.