From 311e9fcb98bdb5360b30f9c1ca1728ddd5a9b274 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Oct 2021 14:07:50 +0200 Subject: css adjustment. landscape warning. fixing resize --- src/graph.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/graph.js') diff --git a/src/graph.js b/src/graph.js index 75491b3..db06a62 100644 --- a/src/graph.js +++ b/src/graph.js @@ -299,6 +299,8 @@ export default function buildGraph({ db, handlers }) { }; const resize = () => { + graph.width(window.innerWidth); + graph.height(window.innerHeight); graph.renderer().setSize(window.innerWidth, window.innerHeight); graph.camera().aspect = window.innerWidth / window.innerHeight; graph.camera().updateProjectionMatrix(); -- cgit v1.2.3-70-g09d2