Make DetailsPage narrow in ladscape mode
This commit is contained in:
parent
45b3d11655
commit
af7763848a
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ Page {
|
||||||
property var printer
|
property var printer
|
||||||
|
|
||||||
SilicaFlickable {
|
SilicaFlickable {
|
||||||
|
id: detailsFlickable
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
contentHeight: col.height
|
contentHeight: col.height
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ Page {
|
||||||
id: col
|
id: col
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: parent.width - 2*Theme.paddingLarge
|
width: Math.min(Screen.width, detailsFlickable.width)-2*Theme.paddingLarge
|
||||||
PageHeader {
|
PageHeader {
|
||||||
title: qsTr("Details")
|
title: qsTr("Details")
|
||||||
description: printer.attrs["printer-name"].value
|
description: printer.attrs["printer-name"].value
|
||||||
|
|
Loading…
Reference in a new issue