From e8b572ba6f29ee5e21e33e583f1545248632cf01 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 4 Jul 2019 19:22:10 +0200 Subject: [PATCH] BUG FIX: workspace appearing far when reloading --- Spaces/FloatingSpace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spaces/FloatingSpace.js b/Spaces/FloatingSpace.js index aab8fbe4a..1deab5a25 100644 --- a/Spaces/FloatingSpace.js +++ b/Spaces/FloatingSpace.js @@ -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