mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 22:33:08 +00:00
try harder to make the sliding panel take all screen
This commit is contained in:
parent
1b29044a78
commit
a363da2abe
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue