Author Topic: Suggest that UITable caculates children bounds based on HideInactive  (Read 3329 times)

rayark

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Hi,

UITable is supposed to be able to reposition inactive widgets when hideInactive property is not checked.
However, in the method UITable.RepositionVariableSize,
NGUIMath.CalculateRelativeWidgetBounds is not called with considerInactive.
Hence, for inactive children, calculated bounds will always be zero and not repositioned correctly.

I suggest change the line
  1. Bounds b = NGUIMath.CalculateRelativeWidgetBounds(t);
  2.  
to
  1. Bounds b = NGUIMath.CalculateRelativeWidgetBounds(t, !hideInactive);
  2.  

Alvin

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Suggest that UITable caculates children bounds based on HideInactive
« Reply #1 on: February 20, 2014, 09:46:40 AM »
Makes sense. Thanks!

Anshu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Suggest that UITable caculates children bounds based on HideInactive
« Reply #2 on: February 28, 2014, 04:53:17 AM »
May you plz tell me that how the exactly use of uitables and sort the table items as different width size.....

thank you,.