Fixed Size for Floating Space. BUG FIXED when sharing workspaces generated at different screen sizes
This commit is contained in:
1 parent
c0c4b1b9ea
commit
63817983db
1 file changed
+3
-3
@@ -33,10 +33,10 @@ function newFloatingSpace () {
|
||||
thisObject.container.frame.radius = 0
|
||||
|
||||
let devicePixelRatio = window.devicePixelRatio
|
||||
const SPACE_SIZE = 10
|
||||
const SPACE_SIZE = 50000
|
||||
|
||||
thisObject.container.frame.width = browserCanvas.width * devicePixelRatio * SPACE_SIZE
|
||||
thisObject.container.frame.height = browserCanvas.height * devicePixelRatio * SPACE_SIZE
|
||||
thisObject.container.frame.width = devicePixelRatio * SPACE_SIZE
|
||||
thisObject.container.frame.height = devicePixelRatio * 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