mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix rendering for safari 6
This commit is contained in:
@ -38,10 +38,12 @@ function renderDocument(document, options, windowWidth, windowHeight) {
|
||||
var parser = new NodeParser(node, renderer, support, imageLoader, options);
|
||||
return parser.ready.then(function() {
|
||||
log("Finished rendering");
|
||||
var canvas = (options.type !== "view" && (node === clonedWindow.document.body || node === clonedWindow.document.documentElement)) ? renderer.canvas : crop(renderer.canvas, bounds);
|
||||
if (options.removeContainer) {
|
||||
container.parentNode.removeChild(container);
|
||||
log("Cleaned up container");
|
||||
}
|
||||
return (options.type !== "view" && (node === clonedWindow.document.body || node === clonedWindow.document.documentElement)) ? renderer.canvas : crop(renderer.canvas, bounds);
|
||||
return canvas;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
1
src/fabric
Submodule
1
src/fabric
Submodule
Submodule src/fabric added at 791c74a82e
1
src/fabric.js
Submodule
1
src/fabric.js
Submodule
Submodule src/fabric.js added at 791c74a82e
Reference in New Issue
Block a user