@@ -30,8 +30,13 @@ Popover {
3030 left: parent.left
3131 right: parent.right
3232 }
33− // Popover doesn't like being 75% or bigger than the screen (counting the "empty" part on top)
34− height: Math.min(root.parent.height * 3 / 4 - flickable.mapToItem(null, 0, 0).y - 1, column.height);
33+ height: {
34+ // Popover doesn't like being 75% or bigger than the screen (counting the "empty" part on top)
35+ var posToRootParent = flickable.mapToItem(null, 0, 0).y;
36+ var threeQuartersParent = root.parent.height * 3 / 4 - posToRootParent - 1;
37+ var parentAndKeyboard = root.parent.height - posToRootParent - (Qt.inputMethod.visible ? Qt.inputMethod.keyboardRectangle.height : 0)
38+ return Math.min(parentAndKeyboard, Math.min(threeQuartersParent, column.height));
39+ }
3540 contentHeight: column.height
3641 contentWidth: width
3742