diff --git a/touch/Dialog.qml b/touch/Dialog.qml index e0ff000..69ed3a1 100644 --- a/touch/Dialog.qml +++ b/touch/Dialog.qml @@ -56,9 +56,12 @@ Rectangle { id: contents property int border: parent.width * 0.1 width: parent.fullWidth ? parent.width : (parent.width - 2 * border) - property int maxHeight: parent.height - 4 * border + property int maxHeight: parent.height - toolbar.height height: ((page.contentHeight > 0 && page.contentHeight < maxHeight) ? page.contentHeight : maxHeight) * parent.opacity - anchors.centerIn: parent + anchors { + horizontalCenter: parent.horizontalCenter + top: parent.top + } color: Constants.colors.dialog clip: true } diff --git a/touch/Main.qml b/touch/Main.qml index 099f6ac..7f0ea8c 100644 --- a/touch/Main.qml +++ b/touch/Main.qml @@ -32,7 +32,8 @@ Item { GPodderPodcastListModel { id: podcastListModel } - property real scalef: width / 480 + property real scalef: (width < height) ? (width / 480) : (height / 480) + property int shorterSide: (width < height) ? width : height property int dialogsVisible: 0 anchors.fill: parent diff --git a/touch/PlayerPage.qml b/touch/PlayerPage.qml index 6d51364..7b09ce2 100644 --- a/touch/PlayerPage.qml +++ b/touch/PlayerPage.qml @@ -44,11 +44,6 @@ Dialog { width: flickable.width spacing: 10 * pgst.scalef - SlidePageHeader { - title: 'Now playing' - color: Constants.colors.playback - } - Column { anchors { left: parent.left @@ -56,6 +51,8 @@ Dialog { margins: 30 * pgst.scalef } + Item { width: parent.width; height: 20 * pgst.scalef } + PLabel { anchors { left: parent.left