Permalink
Browse files

Fix context indexes

  • Loading branch information...
koenbok committed May 10, 2016
1 parent 02643eb commit 9bc5c0e4f388a131971b562f023141cd7da3eb8a
Showing with 11 additions and 0 deletions.
  1. +11 −0 framer/Context.coffee
View
@@ -57,6 +57,11 @@ class exports.Context extends BaseClass
@reset()
if options.hasOwnProperty("index")
@index = options.index
else
@index = @id
reset: ->
@_createDOMEventManager()
@@ -322,6 +327,12 @@ class exports.Context extends BaseClass
@_perspectiveOriginY = value
@_updatePerspective()
@define "index",
get: -> @_element?.style["z-index"] or 0 or 0
set: (value) ->
return unless @_element
@_element.style["z-index"] = value
toInspect: ->
round = (value) ->

0 comments on commit 9bc5c0e

Please sign in to comment.