on xenial help sign in
Use anchors instead of width as suggested in review
363eaedAlbert Astals Cid
qml/Dash/Filters/FilterExpandableWidget.qml+7−4
@@ -32,7 +32,8 @@ FilterWidget {
32 objectName: "expandingItem"
32 objectName: "expandingItem"
33
33
34 expandedHeight: collapsedHeight + column.height
34 expandedHeight: collapsedHeight + column.height
35− width: parent.width
35+ anchors.left: parent.left
36+ anchors.right: parent.right
36 showDivider: false
37 showDivider: false
37
38
38 onClicked: {
39 onClicked: {
@@ -45,7 +46,8 @@ FilterWidget {
45 id: titleHolder
46 id: titleHolder
46 anchors.top: parent.top
47 anchors.top: parent.top
47 height: expandingItem.collapsedHeight
48 height: expandingItem.collapsedHeight
48− width: parent.width
49+ anchors.left: parent.left
50+ anchors.right: parent.right
49
51
50 Label {
52 Label {
51 anchors.left: parent.left
53 anchors.left: parent.left
@@ -68,7 +70,8 @@ FilterWidget {
68
70
69 Column {
71 Column {
70 id: column
72 id: column
71− width: parent.width
73+ anchors.left: parent.left
74+ anchors.right: parent.right
72 anchors.top: titleHolder.bottom
75 anchors.top: titleHolder.bottom
73
76
74 Repeater {
77 Repeater {
@@ -84,7 +87,7 @@ FilterWidget {
84
87
85 ListItems.ThinDivider {
88 ListItems.ThinDivider {
86 anchors.bottom: parent.bottom
89 anchors.bottom: parent.bottom
87− visible: index != repeater.count - 1
90+ visible: index !== repeater.count - 1
88 }
91 }
89 }
92 }
90 }
93 }