Frame (re-)Positioning
Quick Reply
You need to login or register to post comments.
Benefits of Registration
- Interact with hundreds of thousands of other gamers on an open social network.
- Post your stories, news, images, videos, and other content to share.
- Create a network with your fellow gamers or join an existing one.
- Gain reputation for everything you do.

- Thumbs Down
- Thumbs Up
- +0
kadolarI have a tiny addon that has one frame that the user can drag and position wherever they want.
Unfortunately, if they position the addon's frame near the edge of the screen and then change their video resolution to a setting with smaller dimensions, the frame is subsequently drawn off-screen - at the same screen-position they dragged it to..
Courtesy of wow-wiki, I found these two lines which seem to handle the resetting of the position of the frame fairly well (I'd prefer it didn't position it splat-center of the screen, but at least the user can then see again and move it where they want). {{{
xpNotifyFrame:ClearAllPoints(); xpNotifyFrame:SetPoint("CENTER","UIParent","CENTER",0,0);}}}
My problem is that registering for the event DISPLAY_SIZE_CHANGED isn't firing. Is this the correct event hook? Is there a better way to solve this problem?