Framer icon indicating copy to clipboard operation
Framer copied to clipboard

ScrollCompontent.updateContent() should take contentInset into account

Open nvh opened this issue 8 years ago • 1 comments

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.

nvh avatar Aug 02 '16 08:08 nvh

+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.

nsimonson avatar Mar 17 '17 17:03 nsimonson