Commit 24dc96ad authored by Marco Martin's avatar Marco Martin

correct sizing of the screen

the up arrow to unlock is not visible anymore when unlocked
parent d0321858
......@@ -112,8 +112,8 @@ MouseEventListener {
}
Item {
Layout.fillWidth: true
Layout.minimumHeight: root.height
Layout.maximumHeight: root.height
Layout.minimumHeight: plasmoid.availableScreenRect.height
Layout.maximumHeight: plasmoid.availableScreenRect.height
Clock {
anchors {
horizontalCenter: parent.horizontalCenter
......@@ -169,8 +169,8 @@ MouseEventListener {
z: 99
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition
y: Math.max(viewPos + plasmoid.availableScreenRect.y + krunner.inputHeight - units.smallSpacing,
Math.min(parent.height, viewPos + plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height - height) + Math.max(0, -(parent.height - height + applicationsView.contentY)))
y: Math.max(viewPos + krunner.inputHeight - units.smallSpacing,
Math.min(parent.height, viewPos + plasmoid.availableScreenRect.height - height) + Math.max(0, -(parent.height - height + applicationsView.contentY)))
GridView {
id: favoritesView
......
......@@ -294,6 +294,7 @@ Item {
MouseEventListener {
anchors.fill: parent
//Events handling: those events are about clicking and reordering of app icons
//applet related events are in AppeltsArea.qml
onPressAndHold: {
......@@ -500,10 +501,9 @@ Item {
GridView {
id: applicationsView
anchors {
top: parent.top
bottom: parent.bottom
left: parent.left
right: parent.right
fill: parent
topMargin: plasmoid.availableScreenRect.y
bottomMargin: root.height - plasmoid.availableScreenRect.y - plasmoid.availableScreenRect.height
}
property var dragData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment