Author Topic: Relative Anchors for ScrollView children  (Read 3080 times)

optimisticmonkey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 15
    • View Profile
Relative Anchors for ScrollView children
« on: July 14, 2014, 02:26:57 PM »
I have a bunch of children in a ui scroll view.

Since I am targeting both iphone and iPad, I want them to resize based on screen res.

I tried applying relative anchors to the panel, scrollview, and scrollview background, but non resize appropriately wjen resolution changes.

So I want to use UI grid to lay them out - but uigrid has fixd cell size setting?

I want the cell size to be dynamically based on the content?

I could programatically grab some kind of size factor and apply, but first want to make sure that is the correct way to approach it....

Thanks for any feedback/advice
« Last Edit: July 14, 2014, 08:08:18 PM by optimisticmonkey »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Relative Anchors for ScrollView children
« Reply #1 on: July 15, 2014, 12:37:16 AM »
Yes, if you need dynamic cell size then you will want to code a new component for that rather than using the UIGrid.