Framer
Framer copied to clipboard
ScrollCompontent.updateContent() should take contentInset into account
Currently, the contentSize of the contentLayer is always the size of the ScrollComponent, regardless of contentInset.
See the following example: http://share.framerjs.com/0urrb8qqlhds/
Because the content has no sublayers, we could also reduce it's size, so that the content including the contentInset would fill the size of the ScrollComponent. Up until the content is too big to fit inside it.
+1 for this. I was trying to use the content layer as a wrapper that I could right align sublayers to. I expected contentInset.right
and contentInset.left
would resize the content layer.