mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
fix krunner box position
This commit is contained in:
parent
7b7fde14bc
commit
b05ee6d25d
1 changed files with 1 additions and 8 deletions
|
|
@ -150,13 +150,6 @@ Item {
|
||||||
contentHeight: flickableContents.height
|
contentHeight: flickableContents.height
|
||||||
interactive: !plasmoid.editMode && !launcherDragManager.active
|
interactive: !plasmoid.editMode && !launcherDragManager.active
|
||||||
|
|
||||||
property real oldContentY
|
|
||||||
onContentYChanged: {
|
|
||||||
if (!atYBeginning) {
|
|
||||||
krunner.y = Math.min(plasmoid.availableScreenRect.y, Math.max(plasmoid.availableScreenRect.y - krunner.inputHeight, krunner.y + oldContentY - contentY));
|
|
||||||
}
|
|
||||||
oldContentY = contentY;
|
|
||||||
}
|
|
||||||
PlasmaComponents.ScrollBar.vertical: PlasmaComponents.ScrollBar {
|
PlasmaComponents.ScrollBar.vertical: PlasmaComponents.ScrollBar {
|
||||||
id: scrollabr
|
id: scrollabr
|
||||||
opacity: mainFlickable.moving
|
opacity: mainFlickable.moving
|
||||||
|
|
@ -333,7 +326,7 @@ Item {
|
||||||
z: 998
|
z: 998
|
||||||
height: plasmoid.availableScreenRect.height
|
height: plasmoid.availableScreenRect.height
|
||||||
anchors {
|
anchors {
|
||||||
//top: parent.top
|
top: parent.top
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
topMargin: plasmoid.availableScreenRect.y
|
topMargin: plasmoid.availableScreenRect.y
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue