Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #278 from rustamli/master

Fixed default coordinates bug in fromHTML
  • Loading branch information...
commit afe80e38d20661e48c9ddb8b26bd3890df0d6aeb 2 parents 82893ba + d23ad56
@diegocr diegocr authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 jspdf.plugin.from_html.js
View
9 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);
Please sign in to comment.
Something went wrong with that request. Please try again.