Merge pull request #8112 from atom/as-tiles-stacking-context

Create new stacking context for tiles
This commit is contained in:
Antonio Scandurra 2015-07-28 16:38:32 +02:00
commit 938ee68373

View File

@ -14,6 +14,9 @@ class LinesComponent extends TiledComponent
@domNode = document.createElement('div')
@domNode.classList.add('lines')
@tilesNode = document.createElement("div")
# Create a new stacking context, so that tiles z-index does not interfere
# with other visual elements.
@tilesNode.style.isolation = "isolate"
@tilesNode.style.zIndex = 0
@domNode.appendChild(@tilesNode)