From 89bc8998a8d953b994c4896c711a9503ec77f82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Weinbrenner?= Date: Sun, 14 Dec 2014 17:55:38 +0100 Subject: [PATCH] Correct increasement of y after an image. additionalSpaceTop wasn't considered --- jspdf.plugin.from_html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jspdf.plugin.from_html.js b/jspdf.plugin.from_html.js index 79395fcd9..2f95838d0 100644 --- a/jspdf.plugin.from_html.js +++ b/jspdf.plugin.from_html.js @@ -434,7 +434,7 @@ } } else { //if no floating is set, move the rendering cursor after the image height - renderer.y += cn.height + additionalSpaceBottom; + renderer.y += cn.height + additionalSpaceTop + additionalSpaceBottom; } /*** TABLE RENDERING ***/