Make DetailsPage narrow in ladscape mode

This commit is contained in:
Anton Thomasson 2021-03-20 14:38:45 +01:00
parent 45b3d11655
commit af7763848a

View file

@ -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