Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix bug in Utils.textSize()
- Loading branch information
Showing
with
3 additions
and
1 deletion.
-
+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" |
|
|