on xenial help sign in
Use anchors instead of sizes.
commit246fa3a1f33d53e6ac8930de1e4590bcc9c516a1 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 9 Aug 2013, 11:37 (13 years ago) parent2a72048
1 file changed+4−9
Dash/Apps/AppReviews.qml+4−9
Dash/Apps/AppReviews.qml+4−9
@@ -141,19 +141,17 @@ Column {
141141 model: root.model
142142
143143 Column {
144− width: parent.width
144+ anchors { left: parent.left; right: parent.right }
145145
146146 Column {
147+ anchors { left: parent.left; right: parent.right }
147148
148149 Label {
150+ anchors { left: parent.left; right: parent.right }
149151 text: modelData[0]
150152 fontSize: "medium"
151153 color: "white"
152154 opacity: .8
153− anchors {
154− left: parent.left
155− right: parent.right
156− }
157155 wrapMode: Text.WordWrap
158156 style: Text.Raised
159157 styleColor: "black"
@@ -179,14 +177,11 @@ Column {
179177 }
180178
181179 Label {
180+ anchors { left: parent.left; right: parent.right }
182181 text: modelData[3]
183182 fontSize: "medium"
184183 color: Theme.palette.selected.backgroundText
185184 opacity: .6
186− anchors {
187− left: parent.left
188− right: parent.right
189− }
190185 wrapMode: Text.WordWrap
191186 style: Text.Raised
192187 styleColor: "black"