Author Topic: Dynamic Table content and drag-able panel  (Read 3952 times)

EToreo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 88
    • View Profile
Dynamic Table content and drag-able panel
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Table content and drag-able panel
« Reply #1 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?

EToreo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 88
    • View Profile
Re: Dynamic Table content and drag-able panel
« Reply #2 on: January 22, 2013, 12:15:24 AM »
Worked like a charm.  Thanks.