Permalink
Browse files

Limit the size of the HTML wrapper to the intrinsic size

  • Loading branch information...
eelco committed Jun 7, 2017
1 parent 7b8793e commit d5116246ce027be488eeaaad633b6011a517df71
Showing with 2 additions and 0 deletions.
  1. +2 −0 framer/Layer.coffee
View
@@ -817,6 +817,8 @@ class exports.Layer extends BaseClass
else
@_elementHTML.style.transformOrigin = "0 0"
@_elementHTML.style.transform = "scale(#{@context.scale * @width / @htmlIntrinsicSize.width}, #{@context.scale * @height / @htmlIntrinsicSize.height})"
@_elementHTML.style.width = "#{@htmlIntrinsicSize.width}px"
@_elementHTML.style.height = "#{@htmlIntrinsicSize.height}px"
querySelector: (query) -> @_element.querySelector(query)
querySelectorAll: (query) -> @_element.querySelectorAll(query)

0 comments on commit d511624

Please sign in to comment.