resizeFunc() { var can = document.getElementById('project-progress-canvas'); var canvasContainer = document.getElementById("project-progress-canvas-container"); if (can) { can.height = canvasContainer.offsetHeight; can.width = canvasContainer.offsetWidth; this.draw(); } }
|