Commit 91b29c37 authored by Marco Martin's avatar Marco Martin

work well also in the case of no applets

the spacer will always take all the remaining space
parent 35674311
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment