Permalink
Browse files

Append child after setting style

  • Loading branch information...
koenbok committed Aug 29, 2017
1 parent e0abfdf commit 0c8e7c2127b2d8185201c527d35f20709186433b
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/Layer.coffee
View
@@ -183,7 +183,6 @@ class exports.Layer extends BaseClass
# Create border element
@_elementBorder = document.createElement("div")
@_element.appendChild(@_elementBorder)
@_elementBorder.style.position = "absolute"
@_elementBorder.style.top = "0"
@_elementBorder.style.bottom = "0"
@@ -192,6 +191,7 @@ class exports.Layer extends BaseClass
@_elementBorder.style.boxSizing = "border-box"
@_elementBorder.style.zIndex = "1000"
@_elementBorder.style.pointerEvents = "none"
@_element.appendChild(@_elementBorder)
# Sanitize calculated property setters so direct properties always win
layerPropertyIgnore(options, "point", ["x", "y"])

0 comments on commit 0c8e7c2

Please sign in to comment.