Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: EToreo on January 20, 2013, 11:53:13 PM

Title: Dynamic Table content and drag-able panel
Post by: EToreo on January 20, 2013, 11:53:13 PM
I have a few dynamic tables (and grids) in my GUI.  They start out with no children and then I add content dynamically at run time.  They are under drag-able panels attached to scroll bars.  After I am done dynamically adding content it would be nice if said content was positioned at the top of the panel, but the first item in the table (or grid) is always centered vertically in the panel.  How do I tell the drag-able panel to correct this?  Touching the scroll bar fixes it - but it would be nice to have it come up correctly.

I have attached some examples of what I am talking about.
Title: Re: Dynamic Table content and drag-able panel
Post by: ArenMook on January 21, 2013, 07:30:57 AM
Why don't you just move the table/grid up by half of the scroll area's height?
Title: Re: Dynamic Table content and drag-able panel
Post by: EToreo on January 22, 2013, 12:15:24 AM
Worked like a charm.  Thanks.