add some margins

don't make the panel cover krunner
This commit is contained in:
Marco Martin 2015-06-18 19:37:23 -07:00
parent ac6fa1866e
commit 8a55d4a285
2 changed files with 7 additions and 1 deletions

View file

@ -30,15 +30,19 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.milou 0.1 as Milou import org.kde.milou 0.1 as Milou
PlasmaCore.FrameSvgItem { PlasmaCore.FrameSvgItem {
id: background
imagePath: "widgets/background" imagePath: "widgets/background"
enabledBorders: PlasmaCore.FrameSvg.BottomBorder enabledBorders: PlasmaCore.FrameSvg.BottomBorder
height: childrenRect.height + margins.bottom height: childrenRect.height + fixedMargins.top/2 + fixedMargins.bottom
ColumnLayout { ColumnLayout {
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right
top: parent.top top: parent.top
topMargin: background.fixedMargins.top / 2
leftMargin: background.fixedMargins.left / 2
rightMargin: background.fixedMargins.right / 2
} }
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: queryField id: queryField

View file

@ -283,8 +283,10 @@ MouseEventListener {
KRunner { KRunner {
z: 1000 z: 1000
anchors { anchors {
top: parent.top
left: parent.left left: parent.left
right: parent.right right: parent.right
topMargin: plasmoid.availableScreenRect.y
} }
} }