mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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 {
|
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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue