correct sizing of the screen

the up arrow to unlock is not visible anymore when unlocked
This commit is contained in:
Marco Martin 2015-07-08 18:30:15 +02:00
parent d032185815
commit 24dc96ad21
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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