Author Topic: Anchor label  (Read 3294 times)

apple741

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Anchor label
« on: December 08, 2013, 06:57:09 PM »
Hello,

I can't seem to get padded anchors to work with text that is set to expand in height only ( as it will change in length based on user input at an early stage). Where label c is anchored to label b which is anchored to label a. The padded anchor seems to be based of the labels original size rather than the newly generated size so the text currently overlaps each other if that makes sense?

I'm using 3.07.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchor label
« Reply #1 on: December 08, 2013, 07:33:46 PM »
Anchoring system directly modifies the dimensions, and so does the labels set to resize. Having both active is a conflict. However you can anchor only the top, and leave the bottom un-anchored (use advanced mode). This way the label will be able to adjust its height accordingly.

apple741

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Anchor label
« Reply #2 on: December 09, 2013, 06:11:06 AM »
Hi Aren,

I want to anchor one label under the other, but anchoring only the top wouldn't take into account expanding label sizes as ideally the bottom position should be used to prevent overlapping?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchor label
« Reply #3 on: December 09, 2013, 07:05:09 AM »
I'll give it some thought and perhaps make the label tie into the anchoring system better. In the meantime, I would suggest you use a table for what you're trying to accomplish as that's what it's meant for (and is still used in the Quest Log example).