Fix render ordering of nodes that form fake stacking contexts

This commit is contained in:
Niklas von Hertzen
2014-02-15 00:33:09 +02:00
parent 6f2a775841
commit 9af96d3812
5 changed files with 128 additions and 88 deletions

View File

@ -12,7 +12,12 @@
timer = date.getTime();
options = options || {};
html2canvas(this, options).then(function(canvas) {
var promise = html2canvas(this, options);
promise.catch(function(err) {
console.log("html2canvas threw an error", err);
});
promise.then(function(canvas) {
var $canvas = $(canvas),
finishTime = new Date();