From e1da762f0980692014579aba7fc543b0ce4f256d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 20 Oct 2015 16:55:55 +0200 Subject: [PATCH] better management of the spacer ensure the spacer is the last item --- containments/homescreen/package/contents/ui/AppletsArea.qml | 2 +- containments/homescreen/package/contents/ui/main.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containments/homescreen/package/contents/ui/AppletsArea.qml b/containments/homescreen/package/contents/ui/AppletsArea.qml index 5c59a497..f358f3f6 100644 --- a/containments/homescreen/package/contents/ui/AppletsArea.qml +++ b/containments/homescreen/package/contents/ui/AppletsArea.qml @@ -181,7 +181,7 @@ MouseEventListener { Item { id: spacer width: parent.width - height: plasmoid.availableScreenRect.height/4 * Math.max(0, 4 -plasmoid.applets.length) + height: Math.max(0, plasmoid.availableScreenRect.height/4 * Math.max(0, 4 -plasmoid.applets.length) - stripe.height - units.gridUnit * 3) //plasmoid.availableScreenRect.height/4 } diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index 33ec6681..374bba0a 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -115,7 +115,7 @@ Item { LayoutManager.plasmoid = plasmoid; LayoutManager.root = root; LayoutManager.layout = appletsSpace.layout; - //LayoutManager.lastSpacer = appletsSpace.lastSpacer; + LayoutManager.lastSpacer = appletsSpace.lastSpacer; LayoutManager.restore(); applicationsView.contentY = -applicationsView.headerItem.height*2;