BUG FIX: workspace appearing far when reloading
This commit is contained in:
1 parent
a3ee6fef20
commit
e8b572ba6f
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user