mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
consider the applet minimumheight
This commit is contained in:
parent
f56a22c9d5
commit
8dbe6c0546
1 changed files with 6 additions and 6 deletions
|
|
@ -27,8 +27,8 @@ import org.kde.satellite.components 0.1 as SatelliteComponents
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
width: 640
|
width: 480
|
||||||
height: 480
|
height: 640
|
||||||
|
|
||||||
property Item toolBox
|
property Item toolBox
|
||||||
property alias appletsSpace: applicationsView.headerItem
|
property alias appletsSpace: applicationsView.headerItem
|
||||||
|
|
@ -59,13 +59,13 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Layout.minimumWidth: root.width
|
Layout.minimumWidth: root.width
|
||||||
Layout.minimumHeight: applet && applet.Layout.minimumHeight > 0 ? applet.Layout.minimumHeight : root.width
|
Layout.minimumHeight: appletsSpace.layout.children.count > 1 ? Math.max(applet.Layout.minimumHeight, root.height / 2) : root.height
|
||||||
|
|
||||||
Layout.preferredWidth: root.width
|
Layout.preferredWidth: root.width
|
||||||
Layout.preferredHeight: applet && applet.Layout.preferredHeight > 0 ? applet.Layout.preferredHeight : root.width
|
Layout.preferredHeight: Layout.minimumHeight
|
||||||
|
|
||||||
Layout.maximumWidth: root.width
|
Layout.maximumWidth: root.width
|
||||||
Layout.maximumHeight: applet && applet.Layout.maximumHeight > 0 ? applet.Layout.maximumHeight : (Layout.fillHeight ? root.height : root.width)
|
Layout.maximumHeight: Layout.minimumHeight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -98,7 +98,7 @@ Item {
|
||||||
z: 999
|
z: 999
|
||||||
property Item layout: mainLayout
|
property Item layout: mainLayout
|
||||||
width: root.width
|
width: root.width
|
||||||
height: root.height - units.iconSizes.medium
|
height: Math.max(root.height, (root.height/2) * mainLayout.children.length)
|
||||||
|
|
||||||
onPressAndHold: {
|
onPressAndHold: {
|
||||||
plasmoid.action("configure").trigger();
|
plasmoid.action("configure").trigger();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue