Author Topic: Dynamically update UIScrollView size  (Read 1878 times)

mr.decency

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Dynamically update UIScrollView size
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamically update UIScrollView size
« Reply #1 on: March 30, 2014, 07:54:00 AM »
Call UIScrollView.UpdatePosition()

mr.decency

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Dynamically update UIScrollView size
« Reply #2 on: March 30, 2014, 05:17:17 PM »
That'll do it. thanks  ;D