Skip to content

Commit 89bc899

Browse files
committed
Correct increasement of y after an image. additionalSpaceTop wasn't considered
1 parent 38bc719 commit 89bc899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jspdf.plugin.from_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
}
435435
} else {
436436
//if no floating is set, move the rendering cursor after the image height
437-
renderer.y += cn.height + additionalSpaceBottom;
437+
renderer.y += cn.height + additionalSpaceTop + additionalSpaceBottom;
438438
}
439439

440440
/*** TABLE RENDERING ***/

0 commit comments

Comments
 (0)