Permalink
Browse files

When copying TextLayer, don’t copy width or height if not explicitely…

… set
  • Loading branch information...
eelco committed Jun 16, 2017
1 parent 280d7df commit ec9817d74b572ff48898a206aedfea990e564b4e
Showing with 8 additions and 0 deletions.
  1. +8 −0 framer/TextLayer.coffee
View
@@ -80,6 +80,14 @@ class exports.TextLayer extends Layer
@on "change:width", @updateExplicitWidth
@on "change:height", @updateExplicitHeight
copySingle: ->
props = @props
delete props["width"] if not @explicitWidth
delete props["height"] if not @explicitHeight
copy = new @constructor(props)
copy.style = @style
copy
defaultFont: ->
return Utils.deviceFont(Framer.Device.platform())

0 comments on commit ec9817d

Please sign in to comment.