Refactoring window.TOP_MARGIN -> window.canvasApp.topMargin

This commit is contained in:
Luis Fernando Molina committed 2018-10-25 09:54:58 +02:00
1 parent d718bfda01
commit 430d87070a
4 files changed
+12 -12

No files matched your search

+2 -2
View File
@@ -59,10 +59,10 @@ function loadAdvancedAlgosPlatform() {
browserCanvas = document.getElementById('canvas');
browserCanvas.width = window.innerWidth;
browserCanvas.height = window.innerHeight - window.TOP_MARGIN;
browserCanvas.height = window.innerHeight - window.canvasApp.topMargin;
browserCanvas.style.border = "none";
browserCanvas.style.top = window.TOP_MARGIN + 'px';
browserCanvas.style.top = window.canvasApp.topMargin + 'px';
/* The second thing to do is to send the tokenSession to the server, so that it can prepare the server side data structures needed. */