on xenial help sign in
Make sure activity indicator is only on screen when preview available, and make image widget fit on screen.
commit0c0d525f28e725a485975a88567e3e794d99ee41 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 21 Feb 2014, 10:37 (13 years ago) parentf6c6891
2 files changed+3−6
qml/Dash/PreviewListView.qml+1−1 qml/Dash/Previews/PreviewZoomableImage.qml+2−5
qml/Dash/PreviewListView.qml+1−1
@@ -181,7 +181,7 @@ Item {
181181
182182 ActivityIndicator {
183183 anchors.centerIn: parent
184− visible: parent.enabled
184+ visible: root.onScreen && parent.enabled
185185 running: visible
186186 }
187187 }
qml/Dash/Previews/PreviewZoomableImage.qml+2−5
@@ -30,11 +30,8 @@ PreviewWidget {
3030
3131 LazyImage {
3232 objectName: "image"
33− anchors {
34− top: parent.top
35− bottom: parent.bottom
36− }
37− scaleTo: "height"
33+ anchors.fill: parent
34+ scaleTo: "fit"
3835 source: widgetData["source"]
3936 initialWidth: units.gu(13)
4037 }