Skip to content

Commit

Permalink
Added z index duplication since browsers tend to require it nowadays
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Lundfall committed Jun 6, 2017
1 parent 45f3ee0 commit dbaf963
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/ElementOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ define(function(require, exports, module) {
this._matrix = matrix;
var aaMatrix = this._size ? Transform.thenMove(matrix, [-this._size[0]*origin[0], -this._size[1]*origin[1], 0]) : matrix;
_setMatrix(target, aaMatrix);
/* Since a lot of browsers are buggy, they need the z-index to be set as well in order to successfully place things
* on top of each other*/
target.style.zIndex = aaMatrix[14];
this._transformDirty = false;
}
};
Expand Down

0 comments on commit dbaf963

Please sign in to comment.