From 6d9f9afcadadb202f6161443f679526a41b7182d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 28 Feb 2012 15:23:47 +0100 Subject: [PATCH] proper borders --- declarativeimports/plasmacomponents/fullscreensheet.cpp | 2 +- .../plasmacomponents/platformcomponents/touch/Sheet.qml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/declarativeimports/plasmacomponents/fullscreensheet.cpp b/declarativeimports/plasmacomponents/fullscreensheet.cpp index 5210a8330..c728413ce 100644 --- a/declarativeimports/plasmacomponents/fullscreensheet.cpp +++ b/declarativeimports/plasmacomponents/fullscreensheet.cpp @@ -30,7 +30,7 @@ FullScreenSheet::FullScreenSheet(QDeclarativeItem *parent) { init("Sheet"); - view()->setGeometry(QApplication::desktop()->availableGeometry().adjusted(50, 50, 0, 50)); + view()->setGeometry(QApplication::desktop()->availableGeometry()); if (mainItem()) { connect(mainItem(), SIGNAL(acceptButtonChanged()), diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml index c988996e0..7aed660c7 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml @@ -114,8 +114,15 @@ Item { PlasmaCore.FrameSvgItem { id: dialog - anchors.fill: parent + anchors { + fill: parent + leftMargin: 50 + topMargin: 50 + rightMargin: 50 + bottomMargin: 0 + } imagePath: "dialogs/background" + enabledBorders: "LeftBorder|TopBorder|RightBorder" state: "closed"