Author Topic: Odd Problem with Anchors  (Read 1719 times)

blitzer

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 52
    • View Profile
Odd Problem with Anchors
« on: April 26, 2014, 10:25:47 PM »
Hello everyone, I've been seeing a very odd issue related to anchors and element positioning which I've never seen before. Basically, I've been having a problem trying to keep elements with anchors aligned in a certain position.
 
Notice in the picture "centered", that the 2 hierarchies (containeringamemenu and containeringameui) are positioned in the center of the screen with anchor points assigned to them. See how in "NOTcentered", for some reason, the elements are now off center (yet all other elements on the screen have moved correctly). For some reason, these 2 hierarchies just will not behave the way I want them to. The part that confuses me, is that I have many other elements positioned using the exact same setup and work just fine, except for the elements in the pictures. So why do the offsets seem to only be absolute instead of relative like they are normally?

If anyone knows what I've done to make these elements not behave as expected, I would love to know.
« Last Edit: April 27, 2014, 07:53:56 PM by blitzer »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Odd Problem with Anchors
« Reply #1 on: April 27, 2014, 11:50:02 PM »
Why would they be relative if you're only using absolute values? You have something anchored to the right-hand side. Why would it remain centered? If you want it to be centered, anchor it to the center. If you want to use relative values, use advanced anchoring which exposes the relative values.

blitzer

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 52
    • View Profile
Re: Odd Problem with Anchors
« Reply #2 on: April 28, 2014, 04:21:18 AM »
Fair enough.