mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
work well also in the case of no applets
the spacer will always take all the remaining space
This commit is contained in:
parent
356743116b
commit
91b29c37e9
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue