Fix z-index stacking with fixed position

This commit is contained in:
Niklas von Hertzen
2014-09-21 11:44:11 +03:00
parent 24d9a22556
commit b1f948bb60
4 changed files with 28 additions and 3 deletions

2
dist/html2canvas.js vendored
View File

@ -2047,7 +2047,7 @@ function renderableNode(node) {
function isPositionedForStacking(container) {
var position = container.css("position");
var zIndex = (position === "absolute" || position === "relative") ? container.css("zIndex") : "auto";
var zIndex = (["absolute", "relative", "fixed"].indexOf(position) !== -1) ? container.css("zIndex") : "auto";
return zIndex !== "auto";
}

File diff suppressed because one or more lines are too long