Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed default coordinates for fromHTML

  • Loading branch information...
commit d23ad56a25a355fa15edb99a203869ce93277846 1 parent 75d18af
@rustamli rustamli 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.