Fix binding loop and label misplacement on the phone
commitc7412e07f3273ecad138dd707be749135bb7a6f7
authorAlbert Astals Cid <albert.astals@canonical.com>
dateWed 16 Dec 2015, 12:52 (11 years ago)
parent6675909
qml/Dash/DashPageHeader.qml+3−2
@@ -208,10 +208,11 @@ Item {
208208
209209 primaryItem: Rectangle {
210210 color: "#F5F4F5"
211− width: root.navigationTag != "" ? childrenRect.width + units.gu(2) : 0
212− height: root.navigationTag != "" ? childrenRect.height + units.gu(1) : 0
211+ width: root.navigationTag != "" ? tagLabel.width + units.gu(2) : 0
212+ height: root.navigationTag != "" ? tagLabel.height + units.gu(1) : 0
213213 radius: units.gu(0.5)
214214 Label {
215+ id: tagLabel
215216 text: root.navigationTag
216217 anchors.centerIn: parent
217218 color: "#333333"