Author Topic: Scrollable table in a resizeable window 3.4.8  (Read 3613 times)

KeithT

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 55
    • View Profile
Scrollable table in a resizeable window 3.4.8
« on: February 11, 2014, 07:10:32 AM »
Trying to make a dragable, scrolling, resizeable table with rows full of text.
Have:
Window (UISprite)
       Resize btn (UIDrag Resize)
       Scroll View (UIScroll View)
           Table (UITable)
              Label 1 (UILabel, UIDragScrollView)
              Label 2
              Label 3

Left and right Anchors in the labels are linked to the Scroll View Left and right and labels are set to “ResizeHeight”

It sort of works but when resizing the text gets written on top of itself, as guessing probably need to call table.reposition() ? and probably at the update rate from within UIDragResize() on the resize button ?

Am I missing something, anyone got an approach to make this work ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrollable table in a resizeable window 3.4.8
« Reply #1 on: February 11, 2014, 08:05:43 PM »
Anchoring something changes its position. So does a table -- it changes positions of everything inside it.

You should either use anchors, or a table, not both.