Fix form placeholder/value positioning for scrolled pages

This commit is contained in:
Niklas von Hertzen 2014-11-02 19:18:39 +02:00
parent 6ece2a3d5a
commit 7ebd191488
3 changed files with 3 additions and 3 deletions

2
dist/html2canvas.js vendored
View File

@ -1926,7 +1926,7 @@ NodeParser.prototype.paintFormValue = function(container) {
}
});
var bounds = container.parseBounds();
wrapper.style.position = "absolute";
wrapper.style.position = "fixed";
wrapper.style.left = bounds.left + "px";
wrapper.style.top = bounds.top + "px";
wrapper.textContent = container.getValue();

File diff suppressed because one or more lines are too long

View File

@ -352,7 +352,7 @@ NodeParser.prototype.paintFormValue = function(container) {
}
});
var bounds = container.parseBounds();
wrapper.style.position = "absolute";
wrapper.style.position = "fixed";
wrapper.style.left = bounds.left + "px";
wrapper.style.top = bounds.top + "px";
wrapper.textContent = container.getValue();