1
0
mirror of https://github.com/niklasvh/html2canvas.git synced 2023-08-10 21:13:10 +03:00

Hide iframe container from view during render

This commit is contained in:
MoyuScript 2014-02-23 16:26:23 +02:00
parent 6ecd8bcead
commit b062c9ca7d
3 changed files with 3 additions and 1 deletions

@ -75,6 +75,7 @@ function createWindowClone(ownerDocument, width, height, options) {
container.style.visibility = "hidden";
container.style.position = "absolute";
container.style.left = container.style.top = "-10000px";
container.width = width;
container.height = height;
container.scrolling = "no"; // ios won't scroll without it

File diff suppressed because one or more lines are too long

@ -66,6 +66,7 @@ function createWindowClone(ownerDocument, width, height, options) {
container.style.visibility = "hidden";
container.style.position = "absolute";
container.style.left = container.style.top = "-10000px";
container.width = width;
container.height = height;
container.scrolling = "no"; // ios won't scroll without it