WoWInterface - View Single Post - KGPanels -> changing resolution
View Single Post
09-16-14, 09:50 PM   #2
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Use these commands to move the frame exactly where you want it:

/run ChatFrame1:ClearAllPoints()
/run ChatFrame1:SetPoint("BOTTOMLEFT", UIParent, 100, 25)
/run ChatFrame1:SetUserPlaced(true)
/run ChatFrame1:SetSize(600, 200)
In the SetPoint command, the first number is the horizontal offset from the specified point, and the second is the vertical. Positive numbers move left/up, while negative numbers move right/down. In the SetSize command, the first number is the width, and the second is the height.

Then invoke the default UI's own function to save the position and size so they'll be loaded again in the future:

/run FCF_SavePositionAndDimensions(ChatFrame1)
If you want to see the currently saved position and size for reference:

/dump GetChatWindowSavedPosition(ChatFrame1)
/dump GetChatWindowSavedDimensions(ChatFrame1)
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote