Skip to content

Commit d23ad56

Browse files
committed
Fixed default coordinates for fromHTML
1 parent 75d18af commit d23ad56

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jspdf.plugin.from_html.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,13 @@
851851
settings = {};
852852
if (!settings.elementHandlers)
853853
settings.elementHandlers = {};
854-
return process(this, HTML, x || 4, y || 4, settings, callback);
854+
855+
if (x === undefined)
856+
x = 4;
857+
858+
if (y === undefined)
859+
y = 4;
860+
861+
return process(this, HTML, x, y, settings, callback);
855862
};
856863
})(jsPDF.API);

0 commit comments

Comments
 (0)