From 3db5e6935eba311d435dbe51b5c0bc6a607be95b Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 21 Oct 2019 15:44:56 +0200 Subject: [PATCH] Centering on available Y axis at designer --- Spaces/FloatingSpace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spaces/FloatingSpace.js b/Spaces/FloatingSpace.js index f4f0f9574..348c8307a 100644 --- a/Spaces/FloatingSpace.js +++ b/Spaces/FloatingSpace.js @@ -141,7 +141,7 @@ function newFloatingSpace () { let displaceVector = { x: browserCanvas.width / 2 - position.x, - y: browserCanvas.height / 2 - position.y + y: (COCKPIT_SPACE_POSITION + COCKPIT_SPACE_HEIGHT) + (browserCanvas.height - (COCKPIT_SPACE_POSITION + COCKPIT_SPACE_HEIGHT)) / 2 - position.y } thisObject.container.displace(displaceVector)