mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
better management of the spacer
ensure the spacer is the last item
This commit is contained in:
parent
91b29c37e9
commit
e1da762f09
2 changed files with 2 additions and 2 deletions
|
|
@ -181,7 +181,7 @@ MouseEventListener {
|
||||||
Item {
|
Item {
|
||||||
id: spacer
|
id: spacer
|
||||||
width: parent.width
|
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
|
//plasmoid.availableScreenRect.height/4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ Item {
|
||||||
LayoutManager.plasmoid = plasmoid;
|
LayoutManager.plasmoid = plasmoid;
|
||||||
LayoutManager.root = root;
|
LayoutManager.root = root;
|
||||||
LayoutManager.layout = appletsSpace.layout;
|
LayoutManager.layout = appletsSpace.layout;
|
||||||
//LayoutManager.lastSpacer = appletsSpace.lastSpacer;
|
LayoutManager.lastSpacer = appletsSpace.lastSpacer;
|
||||||
LayoutManager.restore();
|
LayoutManager.restore();
|
||||||
applicationsView.contentY = -applicationsView.headerItem.height*2;
|
applicationsView.contentY = -applicationsView.headerItem.height*2;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue