From d941d3ffa3cb69abf7011201aec20f1cbdbbe26c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 10 Dec 2014 16:25:12 +0100 Subject: [PATCH] resize the active window when showing the keyboard --- compositor/contents/WindowManagement.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compositor/contents/WindowManagement.js b/compositor/contents/WindowManagement.js index b0f392ce..0a3df907 100644 --- a/compositor/contents/WindowManagement.js +++ b/compositor/contents/WindowManagement.js @@ -170,7 +170,9 @@ function mapShellSurface(surface, child) { } else { compositorRoot.state = "homeScreen"; } - if (surface.className != "maliit-server.desktop") { + if (surface.className == "maliit-server.desktop") { + compositorRoot.currentWindow.child.height = compositorRoot.layers.windows.height - 500; + } else { entry.window.child.takeFocus(); } @@ -224,6 +226,9 @@ function unmapApplicationSurface(surface) { } function unmapShellSurface(surface) { + if (surface.className == "maliit-server.desktop") { + compositorRoot.currentWindow.child.height = compositorRoot.layers.windows.height; + } // Hide panel layer if this is the sliding panel if (surface.className == "plasmashell.desktop" || surface.className == "maliit-server.desktop") { compositorRoot.showPanel = false;