BUG FIX: workspace appearing far when reloading

This commit is contained in:
Luis Fernando Molina committed 2019-07-04 19:22:10 +02:00
1 parent a3ee6fef20
commit e8b572ba6f
1 file changed
+2 -2
+2 -2
View File
@@ -35,8 +35,8 @@ function newFloatingSpace () {
let devicePixelRatio = window.devicePixelRatio
const SPACE_SIZE = 50000
thisObject.container.frame.width = devicePixelRatio * SPACE_SIZE
thisObject.container.frame.height = devicePixelRatio * SPACE_SIZE
thisObject.container.frame.width = SPACE_SIZE
thisObject.container.frame.height = SPACE_SIZE
thisObject.container.frame.position.x = browserCanvas.width / 2 - thisObject.container.frame.width / 2
thisObject.container.frame.position.y = browserCanvas.height / 2 - thisObject.container.frame.height / 2