From e2bbccbf7772d7025313952f1154031d4201c6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sat, 23 Sep 2017 14:06:40 +0200 Subject: [PATCH] Animate the top bar using scale_y instead of position Fixes #27 --- tiling.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tiling.js b/tiling.js index f31c665..c58e6ef 100644 --- a/tiling.js +++ b/tiling.js @@ -28,10 +28,10 @@ panelBox = Main.layoutManager.panelBox; panelBox.connect('show', () => { Tweener.addTween(panelBox, { - y: primary.y, + scale_y: 1, time: 0.25, onOverWrite: () => { - panelBox.y = primary.y; + scale_y: 1; } }); }); @@ -49,7 +49,7 @@ Space = (workspace) => { } panelBox.connect('hide', () => { - panelBox.y = panelBox.y - panelBox.height; + panelBox.scale_y = 0; }); const spaces = [] @@ -157,7 +157,7 @@ ensure_viewport = (meta_window, force) => { // Fullscreen takes highest priority x = 0, y = 0; Tweener.addTween(panelBox, { - y: primary.y - panelBox.height, + scale_y: 0, time: 0.25, onComplete: () => { panelBox.visible = false;