Skip to content

Commit

Permalink
image floating
Browse files Browse the repository at this point in the history
  • Loading branch information
woolfg committed Jun 27, 2014
1 parent 9c70e27 commit 7ab98a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jspdf.plugin.from_html.js
Expand Up @@ -364,6 +364,8 @@
if ((renderer.pdf.internal.pageSize.height - renderer.pdf.margins_doc.bottom < renderer.y + cn.height) && (renderer.y > renderer.pdf.margins_doc.top)) {
renderer.pdf.addPage();
renderer.y = renderer.pdf.margins_doc.top;
//check if we have to set back some values due to e.g. header rendering for new page
renderer.executeWatchFunctions(cn);
}

var imagesCSS = GetCSS(cn);
Expand Down

0 comments on commit 7ab98a3

Please sign in to comment.