Skip to main content
Question

Is there any way to enable vertical scroll dynamically?

  • February 9, 2022
  • 1 reply
  • 780 views

fragioli

Case scenario:
I have a navigation drawer with several menu items. Each menu is a dropdown, so it has two different states: open and closed. Opening a menu increases its height within the navigation drawer and reveals more options.

When each dropdown is closed, there is no excess content and there should be no need for vertical scrolling. However, when a dropdown opens there may be a possibility of overflowing content. How can I handle that?

I put vertical scrolling on the frame with auto-layout that contains the closed menu items. I tried adding an empty frame inside it that exceeds the height of the navigation drawer to enable vertical scrolling. This makes vertical scrolling possible when a menu item is open, but as a result in the default state - with all menus closed - the list is scrollable, which is not ideal.

Is there a hack or something I’m missing?

This topic has been closed for comments

  • March 11, 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