Originally Posted by Seerah
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:
MyAddonFrame:SetAnchor(BOTTOMLEFT, GuiRoot, BOTTOMLEFT, 0, 0) MyAddonFrame:SetAnchor(BOTTOMRIGHT, GuiRoot, BOTTOMRIGHT, 0, 0) MyAddonFrame:SetHeight(100)
|
Thanks for this, until now I haven't realized there can be multiple anchors on a single control.