Centering on available Y axis at designer

This commit is contained in:
Luis Fernando Molina committed 2019-10-21 15:44:56 +02:00
1 parent 1b9a80ac85
commit 3db5e6935e
1 file changed
+1 -1
+1 -1
View File
@@ -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)