Skip to content

Commit

Permalink
Fix form input text positions (Fix #1338 #1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Dec 31, 2017
1 parent cc9d1f8 commit 79e1c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const inlineFormElement = (
if (value.length > 0 && body) {
const wrapper = node.ownerDocument.createElement('html2canvaswrapper');
copyCSSStyles(node.ownerDocument.defaultView.getComputedStyle(node, null), wrapper);
wrapper.style.position = 'fixed';
wrapper.style.position = 'absolute';
wrapper.style.left = `${container.bounds.left}px`;
wrapper.style.top = `${container.bounds.top}px`;
if (!allowLinebreak) {
Expand Down

0 comments on commit 79e1c85

Please sign in to comment.