on xenial help sign in
adjust initialHeight's of previews
commit54c61a5282fb15f589bab5597700d8ce73d1c1fc authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 2 Oct 2013, 16:56 (13 years ago) parent28c8dc4
3 files changed+5
Dash/Apps/AppPreview.qml+2 Dash/Generic/GenericPreview.qml+2 Dash/Movie/MoviePreview.qml+1
Dash/Apps/AppPreview.qml+2
@@ -52,6 +52,7 @@ GenericPreview {
5252 }
5353 scaleTo: "height"
5454 source: "broken_image"
55+ initialWidth: units.gu(13)
5556 visible: previewImageListView.count == 0
5657 }
5758
@@ -63,6 +64,7 @@ GenericPreview {
6364 }
6465 source: modelData ? modelData : ""
6566 scaleTo: "height"
67+ initialWidth: units.gu(13)
6668 }
6769 }
6870 }
Dash/Generic/GenericPreview.qml+2
@@ -32,6 +32,7 @@ DashPreview {
3232
3333 Component {
3434 id: previewImagesComponent
35+
3536 LazyImage {
3637 objectName: "genericPreviewImage"
3738 anchors {
@@ -41,6 +42,7 @@ DashPreview {
4142 scaleTo: "width"
4243 source: genericPreview.previewData.image
4344 height: implicitHeight
45+ initialHeight: width
4446 }
4547 }
4648
Dash/Movie/MoviePreview.qml+1
@@ -39,6 +39,7 @@ GenericPreview {
3939 visible: height > 0
4040 source: root.url
4141 height: implicitHeight
42+ initialHeight: width * 10 / 16
4243
4344 Image {
4445 objectName: "playButton"