Fix OSK size not always being correct with GBoard

This commit is contained in:
Michael Zanetti 2022-03-16 14:31:21 +01:00
parent 2eb3cfad70
commit f7763746b2

View File

@ -35,7 +35,7 @@ Item {
id: root
implicitHeight: d.active
? d.kbd.height
: (Qt.inputMethod.visible ? Qt.inputMethod.keyboardRectangle.height / Screen.devicePixelRatio : 0)
: (Qt.inputMethod.visible ? Math.max(0, Qt.inputMethod.keyboardRectangle.height / Screen.devicePixelRatio) : 0)
Behavior on implicitHeight { NumberAnimation { duration: 130; easing.type: Easing.InOutQuad } }