From af7763848a854fc50647c56ac40ce322395c0847 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 20 Mar 2021 14:38:45 +0100 Subject: [PATCH] Make DetailsPage narrow in ladscape mode --- qml/pages/DetailsPage.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qml/pages/DetailsPage.qml b/qml/pages/DetailsPage.qml index cef676e..d2a3082 100644 --- a/qml/pages/DetailsPage.qml +++ b/qml/pages/DetailsPage.qml @@ -8,6 +8,7 @@ Page { property var printer SilicaFlickable { + id: detailsFlickable anchors.fill: parent contentHeight: col.height @@ -15,7 +16,7 @@ Page { id: col anchors.horizontalCenter: parent.horizontalCenter - width: parent.width - 2*Theme.paddingLarge + width: Math.min(Screen.width, detailsFlickable.width)-2*Theme.paddingLarge PageHeader { title: qsTr("Details") description: printer.attrs["printer-name"].value