Permalink
Browse files

Fixed default coordinates for fromHTML

  • Loading branch information...
1 parent 75d18af commit d23ad56a25a355fa15edb99a203869ce93277846 @rustamli rustamli committed Jun 8, 2014
Showing with 8 additions and 1 deletion.
  1. +8 −1 jspdf.plugin.from_html.js
@@ -851,6 +851,13 @@
settings = {};
if (!settings.elementHandlers)
settings.elementHandlers = {};
- return process(this, HTML, x || 4, y || 4, settings, callback);
+
+ if (x === undefined)
+ x = 4;
+
+ if (y === undefined)
+ y = 4;
+
+ return process(this, HTML, x, y, settings, callback);
};
})(jsPDF.API);

0 comments on commit d23ad56

Please sign in to comment.