Skip to content

Commit eef7eb4

Browse files
committed
Fixed parallax#185
1 parent 373410a commit eef7eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jspdf.plugin.from_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
};
563563
return jsPDFAPI.fromHTML = function(HTML, x, y, settings, callback, margins) {
564564
"use strict";
565-
this.margins_doc = margins;
565+
this.margins_doc = margins || {top:0,bottom:0};
566566
return process(this, HTML, x, y, settings, callback);
567567
};
568568
})(jsPDF.API);

0 commit comments

Comments
 (0)