Permalink
Browse files

Using canvasScale instead of pixel multiplier

  • Loading branch information...
nvh committed Jan 18, 2018
1 parent 60e5d26 commit 6cdc580afd0b6ea27a5eb5fdec0d8d6370364e91
Showing with 2 additions and 3 deletions.
  1. +2 −3 framer/SVGBaseLayer.coffee
@@ -106,9 +106,8 @@ class exports.SVGBaseLayer extends Layer
@_element.transform.baseVal.removeItem(index)

rect = @_element.getBoundingClientRect()
multiplier = Framer?.CurrentContext.pixelMultiplier ? 1
@_width = rect.width * multiplier
@_height = rect.height * multiplier
@_width = rect.width / @_parent.canvasScaleX()
@_height = rect.height / @_parent.canvasScaleY()

super(options)

0 comments on commit 6cdc580

Please sign in to comment.