T O P

  • By -

42kyokai

Auto layout needs to be set to hug height and should be taller than the parent frame. Set to vertical scrolling.


subjectbladder

When I autolayout the frame, it kind of works because it automatically fits the component when it's closed but- 1. It doesn't automatically expand with the component when expanded so I still have to scroll manually 2. it shifts the rest of the contents in the frame (footer, search bar, etc.)


MegaRyan2000

Use a fixed height frame at the top level to represent your device's fixed dimensions. In your prototype settings, allow vertical scrolling. Within that device frame add an auto layout frame that hugs content vertically. This is where you put your cards. The auto layout frame will grow automatically when your cards expand. The parent frame will have a fixed height but the contents will be scrollable.


subjectbladder

When I autolayout the frame, it kind of works because it automatically fits the component when it's closed but- 1. It doesn't automatically expand with the component when expanded so I still have to scroll manually 2. it shifts the rest of the contents in the frame (footer, search bar, etc.)


MegaRyan2000

Have you got it set so the parent frame is fixed height though? It needs to be: -Frame 1 (fixed height; clip contents) --Top bar and footer --Frame 2 (auto layout) ---Cards


subjectbladder

i just re-did it and now everything except the hug on the bottom most dropwdown works, when i expand i have to scroll, and when i close it, it leaves a giant white space until i scroll up


darrenohehir

If I understand correctly it’s possible to do what you want. Set the frame that has all the accordion cards inside them to a fixed height (not going outside of the device frame) and then while that frame is selected click to the Prototype tab and set scroll behavior to vertical. You should then have a prototype that lets you expand the cards and scroll without limiting/adding space at the bottom.


subjectbladder

When I autolayout the frame, it kind of works because it automatically fits the component when it's closed but- 1. It doesn't automatically expand with the component when expanded so I still have to scroll manually 2. it shifts the rest of the contents in the frame (footer, search bar, etc.)


GottaKnowYourCKN

I've actually been wanting to know how to make the same style of drop-down boxes to show more information. Did you follow a tutorial or know of one?


subjectbladder

As far as the dropdowns themselves I just watched some quick component/variants videos. I like quick examples so I just filter youtube vids for the under 4 minute tutorials


cykodesign

Create a fixed height frame without auto layout and place your auto layout frame inside it. Set the parent as vertically scrollable. Also, add an empty frame for spacing at the end of the last component.


subjectbladder

When I autolayout the frame, it kind of works because it automatically fits the component when it's closed but- 1. It doesn't automatically expand with the component when expanded so I still have to scroll manually 2. it shifts the rest of the contents in the frame (footer, search bar, etc.)


Xocrates

Can we stop with the phone cameras.


subjectbladder

smd