work well also in the case of no applets

the spacer will always take all the remaining space
This commit is contained in:
Marco Martin 2015-10-15 17:52:55 +02:00
parent 356743116b
commit 91b29c37e9
2 changed files with 3 additions and 2 deletions

View file

@ -181,8 +181,10 @@ MouseEventListener {
Item { Item {
id: spacer id: spacer
width: parent.width 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 { PlasmaCore.ColorScope {
id: colorScope id: colorScope
//TODO: decide what color we want applets //TODO: decide what color we want applets

View file

@ -492,7 +492,6 @@ Item {
if (draggingVertically) { if (draggingVertically) {
return; return;
} }
print("AAAAAA "+contentY+" "+(-headerItem.height + root.height)+" "+(-headerItem.height + root.height/5)+wasLocked)
if (wasLocked) { if (wasLocked) {
//scrolling down, unlock //scrolling down, unlock