better management of the spacer

ensure the spacer is the last item
This commit is contained in:
Marco Martin 2015-10-20 16:55:55 +02:00
parent 91b29c37e9
commit e1da762f09
2 changed files with 2 additions and 2 deletions

View file

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

View file

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