This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Naheel Jawaid
Posted Jan 23 - Read on Facebook

Hi There! Having some trouble.

Is there a way to change the contentInset of a ScrollComponent without it refreshing?

I'm trying to expand a post in a feed and the problem right now is that I either have a bunch of whitespace at the bottom, or it will get cut off. Vid attached.

When I use a conditional to change the contentInset, it make it jump back to the top of the screen.


Rafael Marin

I have this problem very often. This method I wrote can help. Whenever you trigger that expanding animation, you also call the updateContentInterval() method, which will try to update the content height of that scroll component as it animates. It may not be the most efficient way, but it's been working for me so far.

Read the entire post on Facebook