Author Topic: UIGrid anchoring to widget sides  (Read 1261 times)

roxioam

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UIGrid anchoring to widget sides
« on: July 01, 2015, 05:04:15 AM »
Hi,

I have the bottom status bar inside my application. I used UIGrid to locate buttons on the status bar. When I resize my application, UIGrid is anchoring to the center of the status bar widget and all placed buttons showed in the center of the status bar. How can I anchor UIGrid to the left and right side of me status bar widget?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid anchoring to widget sides
« Reply #1 on: July 02, 2015, 08:53:57 PM »
UIGrid simply repositions its children. It has no anchoring logic, as it's not a widget. If you want it to be anchored, create a UIWidget container (ALT+SHIFT+W), set its proper pivot point, anchor it, then move your grid to be a child of this widget.