try harder to make the sliding panel take all screen

This commit is contained in:
Marco Martin 2015-12-18 13:49:33 +01:00
parent 1b29044a78
commit a363da2abe

View file

@ -33,6 +33,9 @@ FullScreenPanel {
color: "transparent" color: "transparent"
property alias contents: contentArea.data property alias contents: contentArea.data
width: Screen.width
height: Screen.height
function updateState() { function updateState() {
var delta = offset - mouseArea.startOffset; var delta = offset - mouseArea.startOffset;
if (delta > units.gridUnit * 8) { if (delta > units.gridUnit * 8) {
@ -49,6 +52,8 @@ FullScreenPanel {
if (visible) { if (visible) {
mouseArea.state = "draggingFromClosed"; mouseArea.state = "draggingFromClosed";
mouseArea.startOffset = units.gridUnit * 4; mouseArea.startOffset = units.gridUnit * 4;
window.width = Screen.width;
window.height = Screen.height;
} }
} }