on xenial help sign in
Use anchors instead of width as suggested in review
commit363eaedc8e132ac35e5a6652a0aa2d423ba54971 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 19 Apr 2016, 17:45 (10 years ago) parent6edbb90
1 file changed+7−4
qml/Dash/Filters/FilterExpandableWidget.qml+7−4
qml/Dash/Filters/FilterExpandableWidget.qml+7−4
@@ -32,7 +32,8 @@ FilterWidget {
3232 objectName: "expandingItem"
3333
3434 expandedHeight: collapsedHeight + column.height
35− width: parent.width
35+ anchors.left: parent.left
36+ anchors.right: parent.right
3637 showDivider: false
3738
3839 onClicked: {
@@ -45,7 +46,8 @@ FilterWidget {
4546 id: titleHolder
4647 anchors.top: parent.top
4748 height: expandingItem.collapsedHeight
48− width: parent.width
49+ anchors.left: parent.left
50+ anchors.right: parent.right
4951
5052 Label {
5153 anchors.left: parent.left
@@ -68,7 +70,8 @@ FilterWidget {
6870
6971 Column {
7072 id: column
71− width: parent.width
73+ anchors.left: parent.left
74+ anchors.right: parent.right
7275 anchors.top: titleHolder.bottom
7376
7477 Repeater {
@@ -84,7 +87,7 @@ FilterWidget {
8487
8588 ListItems.ThinDivider {
8689 anchors.bottom: parent.bottom
87− visible: index != repeater.count - 1
90+ visible: index !== repeater.count - 1
8891 }
8992 }
9093 }