From d0e7f052f3905192bc2e46150e2f71ab3e0f761f Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Sun, 31 Dec 2017 19:38:31 +0800 Subject: [PATCH] Fix form input text positions (Fix #1338 #1347) --- src/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input.js b/src/Input.js index 1e75986..12b252a 100644 --- a/src/Input.js +++ b/src/Input.js @@ -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) {