Permalink
Browse files

fix the scrollcomponent to not jump to the top when its content gets …

…updated
  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Mar 14, 2016
1 parent 949e6b3 commit b961fbfb0bc8b9beddef2ccb24c6610b5b42e001
Showing with 2 additions and 3 deletions.
  1. +2 −3 framer/Components/ScrollComponent.coffee
@@ -143,9 +143,8 @@ class exports.ScrollComponent extends Layer
return unless @content
contentFrame = @calculateContentFrame()
contentFrame.x = contentFrame.x + @_contentInset.left
contentFrame.y = contentFrame.y + @_contentInset.top
@content.frame = contentFrame
@content.width = contentFrame.width
@content.height = contentFrame.height
constraintsFrame = @calculateContentFrame()
constraintsFrame =

1 comment on commit b961fbf

@koenbok

This comment has been minimized.

Owner

koenbok commented on b961fbf Apr 11, 2016

@jonastreub this breaks the contentInset.

Please sign in to comment.