From 8dbe6c05462921404f94fe8bd58ab3a5d4d88068 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 26 Feb 2015 11:34:33 +0100 Subject: [PATCH] consider the applet minimumheight --- containments/homescreen/contents/ui/main.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/containments/homescreen/contents/ui/main.qml b/containments/homescreen/contents/ui/main.qml index 7699b4ca..5092a196 100644 --- a/containments/homescreen/contents/ui/main.qml +++ b/containments/homescreen/contents/ui/main.qml @@ -27,8 +27,8 @@ import org.kde.satellite.components 0.1 as SatelliteComponents Item { id: root - width: 640 - height: 480 + width: 480 + height: 640 property Item toolBox property alias appletsSpace: applicationsView.headerItem @@ -59,13 +59,13 @@ Item { } Layout.minimumWidth: root.width - Layout.minimumHeight: applet && applet.Layout.minimumHeight > 0 ? applet.Layout.minimumHeight : root.width + Layout.minimumHeight: appletsSpace.layout.children.count > 1 ? Math.max(applet.Layout.minimumHeight, root.height / 2) : root.height Layout.preferredWidth: root.width - Layout.preferredHeight: applet && applet.Layout.preferredHeight > 0 ? applet.Layout.preferredHeight : root.width + Layout.preferredHeight: Layout.minimumHeight Layout.maximumWidth: root.width - Layout.maximumHeight: applet && applet.Layout.maximumHeight > 0 ? applet.Layout.maximumHeight : (Layout.fillHeight ? root.height : root.width) + Layout.maximumHeight: Layout.minimumHeight } } @@ -98,7 +98,7 @@ Item { z: 999 property Item layout: mainLayout width: root.width - height: root.height - units.iconSizes.medium + height: Math.max(root.height, (root.height/2) * mainLayout.children.length) onPressAndHold: { plasmoid.action("configure").trigger();