Commit 734f1d1a authored by Chris Harris's avatar Chris Harris
Browse files

Use width and height of container rather than parent

Use width() and height() on container rather than innerWidth()
and innerHeight() of parent. innerXXX() includes the padding.

Change-Id: I039f60daa8516c10be84ca8e96b6b45875432dd3
parent f1909d2b
......@@ -341,8 +341,8 @@
* @event stop-loading
ctx2d.canvas.width = $(container).parent().innerWidth();
ctx2d.canvas.height = $(container).parent().innerHeight();
ctx2d.canvas.width = $(container).width();
ctx2d.canvas.height = $(container).height();
ctx2d.drawImage(bgImage, 0, 0, bgImage.width, bgImage.height);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment