From 91b29c37e92d2b961bca26704173653dff34b61d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 15 Oct 2015 17:52:55 +0200 Subject: [PATCH] work well also in the case of no applets the spacer will always take all the remaining space --- containments/homescreen/package/contents/ui/AppletsArea.qml | 4 +++- containments/homescreen/package/contents/ui/main.qml | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/containments/homescreen/package/contents/ui/AppletsArea.qml b/containments/homescreen/package/contents/ui/AppletsArea.qml index 4dc4d704..5c59a497 100644 --- a/containments/homescreen/package/contents/ui/AppletsArea.qml +++ b/containments/homescreen/package/contents/ui/AppletsArea.qml @@ -181,8 +181,10 @@ MouseEventListener { Item { id: spacer width: parent.width - height: plasmoid.availableScreenRect.height/4 + height: plasmoid.availableScreenRect.height/4 * Math.max(0, 4 -plasmoid.applets.length) + //plasmoid.availableScreenRect.height/4 } + PlasmaCore.ColorScope { id: colorScope //TODO: decide what color we want applets diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index 8c7508d7..33ec6681 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -492,7 +492,6 @@ Item { if (draggingVertically) { return; } -print("AAAAAA "+contentY+" "+(-headerItem.height + root.height)+" "+(-headerItem.height + root.height/5)+wasLocked) if (wasLocked) { //scrolling down, unlock