Author Topic: Resizable Items in a ScrollView... possible?  (Read 1255 times)

KniForz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Resizable Items in a ScrollView... possible?
« on: March 11, 2014, 10:59:54 AM »
Hi there,
I'm having a problem with UIScrollview not behaving like I'd want to.
So I'm here to see if it's doable or not and maybe have some hint.

I got a scrollview with around 50-60 items in it.
When I click on one of these item, I want it to expand to give more details to the players (description, etc).

I managed to nicely be able to resize the item with TweenHeight.

However, the scrollview doesn't seem to recalculate the other items position based on the newly resized item.
Is there anything that would take care of that automatically?

Thanks.

Vince

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resizable Items in a ScrollView... possible?
« Reply #1 on: March 11, 2014, 04:48:16 PM »
Scroll view never knows anything about item positions. A scroll view simply lets you move around using the combined bounds of all items. Positioning of items within is done using a UITable or a UIGrid.

The quest log example uses a UITable for example, and features expandable items that push others down as they expand.