on xenial help sign in
fix height issues with LazyImage and Loader
e0752daMichael Zanetti
Dash/DashPreview.qml−1
@@ -155,7 +155,6 @@ Rectangle {
155 left: parent.left
155 left: parent.left
156 right: parent.right
156 right: parent.right
157 }
157 }
158− height: childrenRect.height
159 }
158 }
160
159
161 Loader {
160 Loader {
Dash/Generic/GenericPreview.qml−1
@@ -41,7 +41,6 @@ DashPreview {
41 }
41 }
42 scaleTo: "width"
42 scaleTo: "width"
43 source: genericPreview.previewData.image
43 source: genericPreview.previewData.image
44− height: implicitHeight
45 initialHeight: width
44 initialHeight: width
46 }
45 }
47 }
46 }
Dash/Movie/MoviePreview.qml−1
@@ -38,7 +38,6 @@ GenericPreview {
38 scaleTo: "width"
38 scaleTo: "width"
39 visible: height > 0
39 visible: height > 0
40 source: root.url
40 source: root.url
41− height: implicitHeight
42 initialHeight: width * 10 / 16
41 initialHeight: width * 10 / 16
43
42
44 Image {
43 Image {