Author Topic: Draggable Panel with 2 sprites in each Item  (Read 3992 times)

didier

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Draggable Panel with 2 sprites in each Item
« on: December 14, 2013, 09:24:12 AM »
Hi
i have a draggable panel which works fine when i have only one UISprite in each Item.
However, if I add a new UISprite in the Item (i.e an image and below a new button) , this new UISprite is not shown on the screen.
I need to drag the list in order to make it appears (and then everything is fine).
I uncheck the UIPanel Static checkbox, it seems to fix the issue; but then when i click the panel i see that positions are adjusted somehow, then everything working again.
if someone has had the same issue and know how to fix it it would be great

didier

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Draggable Panel with 2 sprites in each Item
« Reply #1 on: December 14, 2013, 09:28:29 AM »
if i uncheck the static option in uipanel AND enable reposition clipping in the uidraggablepanel script, i can get rid of the repositionining i mentioned above,
no idea why but fair enough for me,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable Panel with 2 sprites in each Item
« Reply #2 on: December 14, 2013, 12:48:22 PM »
Just the fact that you are referring to UIDraggablePanel script and talk about repositioning tells me that you are using an old, unsupported version of NGUI. You need to update to the latest before posting about issues.