Permalink
Browse files

Fixed size check for non-1x displays

  • Loading branch information...
nvh committed Oct 20, 2017
1 parent 4af09bc commit 54e9bcbceb83f3b7dd25eaaef377a727d55d7a61
Showing with 1 addition and 2 deletions.
  1. +1 −2 framer/TextLayer.coffee
View
@@ -257,8 +257,7 @@ class exports.TextLayer extends Layer
@_styledText.render()
@_updateHTMLScale()
if not @autoSize
htmlRect = @_elementHTML.getBoundingClientRect()
if @width < htmlRect.width or @height < htmlRect.height
if @width < @_elementHTML.clientWidth or @height < @_elementHTML.clientHeight
@clip = true
return unless forceRender or @autoHeight or @autoWidth or @textOverflow isnt null
parentWidth = if @parent? then @parent.width else Screen.width

0 comments on commit 54e9bcb

Please sign in to comment.