on xenial help sign in
Merge
commit55b5e1f9014899aa76a32ef83b483d02110da5b9 authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 27 Jan 2016, 10:33 (11 years ago) parent21c7db4edf6e44
1 file changed+7−2
qml/Dash/FiltersPopover.qml+7−2
qml/Dash/FiltersPopover.qml+7−2
@@ -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