Hello Guest

Author Topic: UIScrollableArea and Layouts  (Read 4214 times)

kujo

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
UIScrollableArea and Layouts
« on: January 22, 2014, 12:13:02 pm »
Hi,

We are using a UIScrollableArea prefab in our menu and dynamically add items to the list at run time. We are getting an issue with the UILayoutContainerSizer leaving gaps when items are being added. When we have a closer look, we can see this:



The green image there is a sliced sprite that is standing in for our normally invisible padding.

As you can see, the sprite is being positioned outside of its UILayout bounds, which then throws off our UI and leaves gaps between our other items.



Is there something we are missing with how to use this? When we are in editor mode, everything lays out correctly, but when we go into play mode, things get moved around and causes issue
« Last Edit: January 22, 2014, 12:14:41 pm by kujo »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: UIScrollableArea and Layouts
« Reply #1 on: January 22, 2014, 09:34:36 pm »
This will be really hard to track down without a repro case. I'm in the middle of preparing tk2d 2.4 now, if you could send a simple repro case it will make it a LOT easier and quicker to investigate. Email support at unikronsoftware.com if possible.