@@ -20,24 +20,35 @@ import Ubuntu.Components.Popups 1.2
2020import "Filters" as Filters
2121
2222Popover {
23+ id: root
2324 objectName: "filtersPopover"
24− Column {
25+
26+ Flickable {
27+ id: flickable
2528 anchors {
2629 top: parent.top
2730 left: parent.left
2831 right: parent.right
2932 }
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);
35+ contentHeight: column.height
36+ contentWidth: width
37+
38+ Column {
39+ id: column
40+ width: parent.width
3041
31− Repeater {
32− id: repeater
33− model: scopeView.scope.filters
42+ Repeater {
43+ model: scopeView.scope.filters
3444
35− delegate: Filters.FilterWidgetFactory {
36− width: parent.width
45+ delegate: Filters.FilterWidgetFactory {
46+ width: parent.width
3747
38− widgetId: id
39− widgetType: type
40− widgetData: filter
48+ widgetId: id
49+ widgetType: type
50+ widgetData: filter
51+ }
4152 }
4253 }
4354 }