Skip to content

Commit

Permalink
More fixes to forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
eKoopmans committed May 13, 2017
1 parent cfc00c6 commit 8bd5481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html2pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var html2pdf = (function(html2canvas, jsPDF) {
// Enable page-breaks.
var pageBreaks = source.querySelectorAll('.html2pdf__page-break');
var pxPageHeight = pageSize.inner.height * pageSize.k / 72 * 96;
pageBreaks.forEach(function(el) {
Array.prototype.forEach.call(pageBreaks, function(el) {
el.style.display = 'block';
var clientRect = el.getBoundingClientRect();
el.style.height = pxPageHeight - (clientRect.top % pxPageHeight) + 'px';
Expand Down

0 comments on commit 8bd5481

Please sign in to comment.