on xenial help sign in
Make sure activity indicator is only on screen when preview available, and make image widget fit on screen.
0c0d525Michał Sawicz
qml/Dash/PreviewListView.qml+1−1
@@ -181,7 +181,7 @@ Item {
181
181
182 ActivityIndicator {
182 ActivityIndicator {
183 anchors.centerIn: parent
183 anchors.centerIn: parent
184− visible: parent.enabled
184+ visible: root.onScreen && parent.enabled
185 running: visible
185 running: visible
186 }
186 }
187 }
187 }
qml/Dash/Previews/PreviewZoomableImage.qml+2−5
@@ -30,11 +30,8 @@ PreviewWidget {
30
30
31 LazyImage {
31 LazyImage {
32 objectName: "image"
32 objectName: "image"
33− anchors {
33+ anchors.fill: parent
34− top: parent.top
35− bottom: parent.bottom
36− }
37− scaleTo: "height"
34+ scaleTo: "fit"
38 source: widgetData["source"]
35 source: widgetData["source"]
39 initialWidth: units.gu(13)
36 initialWidth: units.gu(13)
40 }
37 }