Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tracerstevens on November 10, 2013, 07:54:13 PM

Title: ScrollView auto height to fill rest of screen
Post by: tracerstevens on November 10, 2013, 07:54:13 PM
I'd like to have two scrollviews one on top of the other.  The bottom scrollview (anchored to the bottom and stretched horizontally) would be set at a fixed height, how do I auto size the height of the top scrollview to fill in the rest of the space?

Thank you
Title: Re: ScrollView auto height to fill rest of screen
Post by: ArenMook on November 11, 2013, 12:23:58 PM
By using UIStretch component. Modular UI video tutorial might help you here.
Title: Re: ScrollView auto height to fill rest of screen
Post by: murteas on February 13, 2014, 05:53:22 PM
Is this advice still valid after the latest release?  UIStretch is deprecated right?   so how would one do this now?
Title: Re: ScrollView auto height to fill rest of screen
Post by: ArenMook on February 14, 2014, 05:31:54 AM
Yup, it's deprecated as of 3.0.7 (a month after this post).

You can use the new layout system. Scroll views go on clipped panels, and clipped panels can be anchored.