Skip to main content
Oct 7, 2023 8:40 PM UTC
Solved

How do I make the elements around my text automatically go down instead of the text running into the other elements?

I wanted to make a read more section where when you click on read more, the text pushes the other elements down, and when you click to read less, the elements return to their original placement. I followed the steps similarly to an accordion feature but with text, no arrows or lines. I auto-adjusted the frame, but everything got jumbled up soon after that. Link

This topic has been closed for replies.
Nate_G
Nate_GSolution
Power Member
Oct 8, 2023 10:17 PM UTC

Ok, thanks for sharing.

It looks like you have a few elements set to “Absolute Positioning”, which will not move as you expand or collapse your About section.

So you’d need to turn off “Absolute Positioning” for those elements you want to move with the About section. And then put all that content in an auto-layout frame, so as the About section expands/collapses the content will move accordingly.

→ Example Prototype
→ Updated File + Fix

Nate G

6 replies

Nate_G
Power Member
Oct 7, 2023 10:01 PM UTC

@JuneBug You could put that expanding/collapsing component + content inside an auto-layout frame, that way as it expands it will fill the space and push the other content down.

→ Example Prototype
→ Example File

Nate G
JuneBugAuthor
Oct 8, 2023 12:21 AM UTC

Thank you! I feel like I’m close but not quite. I was able to successfully replicate it like you did just to test it out but now that I’m trying with the actual frame I’m working on it doesn’t work. The auto layout doesn’t apply to the bottom sheet on my frame and I’m not sure what is causing the auto-layout to not apply itself.

Nate_G
Power Member
Oct 8, 2023 5:29 PM UTC

@JuneBug Hum🤔, that is weird. If you can share a view-only version of your file, I can take a look.

Nate G
JuneBugAuthor
Oct 8, 2023 8:33 PM UTC
Nate_G
Nate_GSolution
Power Member
Oct 8, 2023 10:17 PM UTC

Ok, thanks for sharing.

It looks like you have a few elements set to “Absolute Positioning”, which will not move as you expand or collapse your About section.

So you’d need to turn off “Absolute Positioning” for those elements you want to move with the About section. And then put all that content in an auto-layout frame, so as the About section expands/collapses the content will move accordingly.

→ Example Prototype
→ Updated File + Fix

Nate G
JuneBugAuthor
Oct 10, 2023 5:30 AM UTC

Thank you so much! I got it now.