Author Topic: Responsive scroll view  (Read 2129 times)

dharmaraj

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Responsive scroll view
« on: December 04, 2014, 04:45:07 AM »
Hi,
How can I adjust the scroll view visible area(soft clip) dynamically with respect to the device.
I have a scroll view with the height matches ipad resolution, when I change the preview screen to iphone5 resolution the scroll view becomes smaller in height. The scroll view is anchored top. Any help?
Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Responsive scroll view
« Reply #1 on: December 05, 2014, 12:34:25 AM »
You can use UIPanel.SetRect, or anchor the panel to a widget, and adjust the widget's dimensions instead. Or adjust UIPanel's baseClipRegion directly, up to you.