[Canvas worker] Fix initial canvas size to prevent blur
diff --git a/player/js/worker_wrapper.js b/player/js/worker_wrapper.js
index 710a0cd..0ddfb11 100644
--- a/player/js/worker_wrapper.js
+++ b/player/js/worker_wrapper.js
@@ -721,8 +721,8 @@
           if (!canvas) {
             canvas = document.createElement('canvas');
             animation.container.appendChild(canvas);
-            canvas.width = animationParams.animationData.w;
-            canvas.height = animationParams.animationData.h;
+            canvas.width = animation.container ? animation.container.offsetWidth : animationParams.animationData.w;
+            canvas.height = animation.container ? animation.container.offsetHeight : animationParams.animationData.h;
             canvas.style.width = '100%';
             canvas.style.height = '100%';
           }