Skip to main content
Solved

Screen height adjust based on open/closed accordion?

  • January 17, 2022
  • 2 replies
  • 2352 views

Alan_Hoey

Hi, I’m currently designing a mobile website that incorporates ‘smart accordions’ using variants and auto layout, one of which condenses info on the website footer.

Question is… is there a way to have the screen (frame) adapt in height based on whether the accordion sections are open or closed, magnetically snap to the bottom of the frame content?
Currently, if the frame height is set to the accordions closed, when opened in prototype view the content clips down out of the bottom of the screen when opened. The alternate way is to set screen(frame) height to accommodate the height of all accordions open… leaving a large white space at the bottom in prototype view if I close the accordions.

Any insight would be appreciated. 🙂

Alan

Best answer by tank666

It looks like you need to add Auto Layout to the top level frame (screen).

View original
This topic has been closed for replies.

2 replies

tank666
  • 4873 replies
  • Answer
  • January 18, 2022

It looks like you need to add Auto Layout to the top level frame (screen).


  • 0 replies
  • February 17, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings