[FIX] Replace canvas.style.width with canvas.style.clientWidth