Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: GroovyGray on January 29, 2015, 02:21:14 PM

Title: Dynamic Scrollview Height Value
Post by: GroovyGray on January 29, 2015, 02:21:14 PM
Where can I get access to the value for dynamic height that results from adding and removing items from a scrollview?

It is not the UIPanel / Size / Y that I'm looking for. It's the actual height of the orange rect in the attached image.

(http://s11.postimg.org/or6yw6mbn/dynamicheight.jpg)
Title: Re: Dynamic Scrollview Height Value
Post by: ArenMook on January 30, 2015, 02:50:23 PM
UIScrollView.bounds

The orange outline is drawn in UIScrollView.OnDrawGizmos.
Title: Re: Dynamic Scrollview Height Value
Post by: GroovyGray on February 01, 2015, 06:51:39 PM
Thanks! Worked like a charm.