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