View Single Post
04/05/14, 12:22 PM   #9
chase
Join Date: Apr 2014
Posts: 3
Originally Posted by Seerah View Post
One last example: if you want your MyAddonFrame to spread across the bottom of the screen, without having to worry about figuring out how big the users screen is (resolution/width), then you can do this:
Lua Code:
  1. MyAddonFrame:SetAnchor(BOTTOMLEFT, GuiRoot, BOTTOMLEFT, 0, 0)
  2. MyAddonFrame:SetAnchor(BOTTOMRIGHT, GuiRoot, BOTTOMRIGHT, 0, 0)
  3. MyAddonFrame:SetHeight(100)
Thanks for this, until now I haven't realized there can be multiple anchors on a single control.
  Reply With Quote