Permalink
Browse files

Merge pull request #278 from rustamli/master

Fixed default coordinates bug in fromHTML
  • Loading branch information...
2 parents 82893ba + d23ad56 commit afe80e38d20661e48c9ddb8b26bd3890df0d6aeb @diegocr diegocr committed Jun 25, 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 afe80e3

Please sign in to comment.