Skip to content
Browse files

Missed modifying a call to Bounds()

  • Loading branch information...
1 parent 74f5b67 commit a245869b19fb9c97bb158967616f29ffe5ce76b6 @OneGeek committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/renderers/Canvas.js
View
2 src/renderers/Canvas.js
@@ -196,7 +196,7 @@ _html2canvas.Renderer.Canvas = function( options ) {
if (queueLen === 1) {
if (typeof options.elements[ 0 ] === "object" && options.elements[ 0 ].nodeName !== "BODY" && usingFlashcanvas === false) {
// crop image to the bounds of selected (single) element
- bounds = _html2canvas.Util.Bounds( options.elements[ 0 ] );
+ bounds = _html2canvas.Util.Bounds( options.elements[ 0 ], options.elements[ 0 ], options );
newCanvas = doc.createElement('canvas');
newCanvas.width = bounds.width;
newCanvas.height = bounds.height;

0 comments on commit a245869

Please sign in to comment.
Something went wrong with that request. Please try again.