Commit a363da2a authored by Marco Martin's avatar Marco Martin
Browse files

try harder to make the sliding panel take all screen

parent 1b29044a
...@@ -33,6 +33,9 @@ FullScreenPanel { ...@@ -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 { ...@@ -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;
} }
} }
......
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