From adbba75d5268eb059859dcaacfeff09d5bb3fdcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 17 Sep 2017 11:21:55 +0200 Subject: [PATCH] Finally anchor the scaled position _properly_ Set the y pivot based on y_offset so we can specify the visible position of the scaled window. --- tiling.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tiling.js b/tiling.js index 7ba87df..6e92ce8 100644 --- a/tiling.js +++ b/tiling.js @@ -96,6 +96,8 @@ move = (meta_window, x, y, onComplete, onStart, delay) => { scale = scaled_height/frame.height; // Center the actor properly y += scaled_y_offset; + let pivot = actor.pivot_point; + actor.set_pivot_point(pivot.x, y_offset/buffer.height); } Tweener.addTween(actor, {x: x - x_offset , y: y - y_offset