Permalink
Browse files

Delaying rerendering a until next tick

  • Loading branch information...
nvh committed Jul 21, 2017
1 parent 9ab9796 commit 364ccbfa10ed9d3d74f36c300728c82c11246677
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/TextLayer.coffee
View
@@ -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)

0 comments on commit 364ccbf

Please sign in to comment.