Skip to content

Commit 0ffc486

Browse files
committed
Merge pull request #423 from bjoerne2/correct_y_after_image
Correct increasement of y after an image. additionalSpaceTop wasn't considered
2 parents 6b9e6d8 + 89bc899 commit 0ffc486

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
@@ -442,7 +442,7 @@
442442
}
443443
} else {
444444
//if no floating is set, move the rendering cursor after the image height
445-
renderer.y += cn.height + additionalSpaceBottom;
445+
renderer.y += cn.height + additionalSpaceTop + additionalSpaceBottom;
446446
}
447447

448448
/*** TABLE RENDERING ***/

0 commit comments

Comments
 (0)