From 8899a3805390f3923d9f55989dcfe314ce0d11bf Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 25 Nov 2012 20:18:45 +0100 Subject: [PATCH] minor fixes/workarounds --- data/qml/StationScene.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/data/qml/StationScene.qml b/data/qml/StationScene.qml index 198542abd..ef99a338a 100644 --- a/data/qml/StationScene.qml +++ b/data/qml/StationScene.qml @@ -65,7 +65,6 @@ Rectangle { GridView { id: gridView anchors.fill: parent - anchors.margins: cellWidth / 2 model: dummyArtistModel cellWidth: gridView.width / 4 - 1 // -1 to make sure there is space for 4 items even with rounding error @@ -157,6 +156,7 @@ Rectangle { coverSize: Math.min(scene.height, scene.width) / 2 height: scene.height width: scene.width + visible: stationListView.currentIndex == 1 } } @@ -169,7 +169,13 @@ Rectangle { orientation: ListView.Horizontal model: stationVisualModel interactive: false - highlightMoveDuration: 200 + highlightMoveDuration: 300 + onHeightChanged: { + contentHeight = scene.height + } + onWidthChanged: { + contentWidth = scene.width + } } }