Fix transform nesting

This commit is contained in:
MoyuScript
2014-03-15 14:30:26 +02:00
parent be59e0ee19
commit bfe31cf71f
4 changed files with 58 additions and 4 deletions

View File

@ -57,7 +57,7 @@ window.html2canvas = function(nodeList, options) {
options.onrendered(canvas);
}
return canvas;
});
});
};
function renderDocument(document, options, windowWidth, windowHeight) {
@ -625,7 +625,7 @@ NodeContainer.prototype.parseBounds = function() {
};
NodeContainer.prototype.hasTransform = function() {
return this.parseTransformMatrix().join(",") !== "1,0,0,1,0,0";
return this.parseTransformMatrix().join(",") !== "1,0,0,1,0,0" || (this.parent && this.parent.hasTransform());
};
NodeContainer.prototype.getValue = function() {

File diff suppressed because one or more lines are too long