Skip to content

Commit afe80e3

Browse files
committed
Merge pull request #278 from rustamli/master
Fixed default coordinates bug in fromHTML
2 parents 82893ba + d23ad56 commit afe80e3

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)