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:
parent
6ecd8bcead
commit
b062c9ca7d
@ -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
|
||||
|
2
build/html2canvas.min.js
vendored
2
build/html2canvas.min.js
vendored
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user