Centering on available Y axis at designer
This commit is contained in:
1 parent
1b9a80ac85
commit
3db5e6935e
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user