Skip to content

Commit

Permalink
Support single number for rect
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed May 14, 2016
1 parent e0ce1dc commit 3aa1421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framer/Utils.coffee
Expand Up @@ -737,6 +737,8 @@ Utils.parseRect = (args) ->
return args[0]
if _.isObject(args)
return args
if _.isNumber(args)
return {top:args, right:args, bottom:args, left:args}

return {}

Expand Down

0 comments on commit 3aa1421

Please sign in to comment.