From f26f17645471eed9eb1982886a307df9a901c2da Mon Sep 17 00:00:00 2001 From: Hyunchul Kim Date: Sun, 12 Sep 2021 04:23:16 +0900 Subject: [PATCH] some corrections... --- test_data/src/scripts/physicsLayout.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test_data/src/scripts/physicsLayout.js b/test_data/src/scripts/physicsLayout.js index 6cbf176..e5fa223 100644 --- a/test_data/src/scripts/physicsLayout.js +++ b/test_data/src/scripts/physicsLayout.js @@ -133,7 +133,11 @@ setInterval(()=>{ maxY = bodies.sort((a, b) => (b.position.y - a.position.y))[0].position.y; if (maxY < getDocumentHeight()) return; - render.canvas.height = Math.max(window.innerHeight, maxY + 1000); + if (window.sessionStorage.getItem("isZoom") == "true") { + render.canvas.height = Math.max(window.innerHeight, maxY * 2); + } else { + render.canvas.height = Math.max(window.innerHeight, maxY + 600); + } document.querySelector('#authors').style.height = render.canvas.height; if(leftWall.position.y+window.innerHeight/2