Skip to content

Commit

Permalink
Delaying rerendering a until next tick
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jul 21, 2017
1 parent 9ab9796 commit 364ccbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framer/TextLayer.coffee
Expand Up @@ -168,7 +168,7 @@ class exports.TextLayer extends Layer
promise = Utils.isFontFamilyLoaded(value)
if _.isObject(promise)
promise.then ->
layer.renderText()
setTimeout(layer.renderText, 0)
)
@define "fontWeight", textProperty(@, "fontWeight")
@define "fontStyle", textProperty(@, "fontStyle", "normal", _.isString)
Expand Down

0 comments on commit 364ccbf

Please sign in to comment.