Skip to content
Snippets Groups Projects
Commit a4d5d179 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Removed logs.

parent 514b38a3
No related branches found
No related tags found
No related merge requests found
...@@ -160,13 +160,10 @@ class Graph { ...@@ -160,13 +160,10 @@ class Graph {
} }
resize() { resize() {
console.log(document.fullscreenElement);
if(document.fullscreenElement == getCanvasDivNode()) { if(document.fullscreenElement == getCanvasDivNode()) {
console.log("Resizing to fullscreen");
this.graph.height(screen.height); this.graph.height(screen.height);
this.graph.width(screen.width); this.graph.width(screen.width);
} else { } else {
console.log("Resizing to column");
this.graph.height(window.innerHeight - 200); this.graph.height(window.innerHeight - 200);
this.graph.width(getWidth()); this.graph.width(getWidth());
} }
...@@ -250,7 +247,6 @@ function createFullScreenButton() { ...@@ -250,7 +247,6 @@ function createFullScreenButton() {
overlayNode.className = 'fullscreen_button'; overlayNode.className = 'fullscreen_button';
overlayNode.innerText = 'fullscreen'; overlayNode.innerText = 'fullscreen';
overlayNode.addEventListener("click", function () { overlayNode.addEventListener("click", function () {
console.log("Catched event");
if(getCanvasDivNode().requestFullscreen) { if(getCanvasDivNode().requestFullscreen) {
getCanvasDivNode().requestFullscreen().then( getCanvasDivNode().requestFullscreen().then(
() => G.resize() () => G.resize()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment