on xenial help sign in
Merge
ad304f5Albert Astals Cid
qml/Dash/FiltersPopover.qml+7−2
@@ -31,8 +31,13 @@ Popover {
31 left: parent.left
31 left: parent.left
32 right: parent.right
32 right: parent.right
33 }
33 }
34+ height: {
34− // Popover doesn't like being 75% or bigger than the screen (counting the "empty" part on top)
35+ // 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);
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+ }
36 contentHeight: column.height
41 contentHeight: column.height
37 contentWidth: width
42 contentWidth: width
38
43