[gnome-shell] layout: Use translation_y of 0 to hide keyboard
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] layout: Use translation_y of 0 to hide keyboard
- Date: Sat, 28 Mar 2020 20:51:52 +0000 (UTC)
commit b68fb3578318fa4b50e7fa79d544d53f8b4f74c9
Author: Jonas Dreßler <verdre v0yd nl>
Date: Sat Mar 28 14:34:24 2020 +0100
layout: Use translation_y of 0 to hide keyboard
Since we show the keyboard using a translation_y of -keyboardHeight, the
keyboard will be moved down far enough to be out of sight by setting
translation_y to 0.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1142
js/ui/layout.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index f688fa2441..53a55c7705 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -765,7 +765,7 @@ var LayoutManager = GObject.registerClass({
this._keyboardHeightNotifyId = 0;
}
this.keyboardBox.ease({
- translation_y: this.keyboardBox.height,
+ translation_y: 0,
opacity: 0,
duration: immediate ? 0 : KEYBOARD_ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_IN_QUAD,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]