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
PlasmaCore.FrameSvgItem {
id: background
imagePath: "widgets/background"
enabledBorders: PlasmaCore.FrameSvg.BottomBorder
height: childrenRect.height + margins.bottom
height: childrenRect.height + fixedMargins.top/2 + fixedMargins.bottom
ColumnLayout {
anchors {
left: parent.left
right: parent.right
top: parent.top
topMargin: background.fixedMargins.top / 2
leftMargin: background.fixedMargins.left / 2
rightMargin: background.fixedMargins.right / 2
}
PlasmaComponents.TextField {
id: queryField

View file

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