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.
This commit is contained in:
Tor Hedin Brønner
2017-09-17 11:21:55 +02:00
parent 85d7dbc93c
commit adbba75d52
+2
View File
@@ -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