Permalink
Browse files

Fix bug in Utils.textSize()

  • Loading branch information...
koenbok committed Jun 30, 2015
1 parent 194c6c1 commit 7c13491e091b3178824f69fdcbad10522f5e59a3
Showing with 3 additions and 1 deletion.
  1. +3 −1 framer/Utils.coffee
@@ -743,9 +743,11 @@ Utils.textSize = (text, style={}, constraints={}) ->
_textSizeNode = document.createElement("div")
_textSizeNode.id = "_textSizeNode"
# Reset all the previous styles and set the content
_textSizeNode.removeAttribute("style")
_textSizeNode.innerHTML = text
style = _.extend style,
style = _.extend _.clone(style),
position: "fixed"
display: "inline"
visibility: "hidden"

0 comments on commit 7c13491

Please sign in to comment.