Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mr.decency on March 30, 2014, 06:50:46 AM

Title: Dynamically update UIScrollView size
Post by: mr.decency on March 30, 2014, 06:50:46 AM
Hi,

I have a UIScrollView containing a label, which has its text changed regularly.  The label is set to ResizeHeight.  After I change the text the scrolling area still scrolls only the distance of the previous height if I use the mouse wheel or the scroll bar I've set up on the side.  If I click and drag on the text, it will move the entire distance and when I let go, Update the scroll bar correctly.

Is there anyway to update this in code after I change the text?
Title: Re: Dynamically update UIScrollView size
Post by: ArenMook on March 30, 2014, 07:54:00 AM
Call UIScrollView.UpdatePosition()
Title: Re: Dynamically update UIScrollView size
Post by: mr.decency on March 30, 2014, 05:17:17 PM
That'll do it. thanks  ;D