View Single Post
12-26-11, 09:14 PM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Dridzt View Post
Unless I totally misunderstood the request
The OP's screen resolution and/or UI scale do not permit both windows to be shown at the same time. Your code doesn't bypass Blizzard's UI panel handling, so all that will happen is that the user will open the auction house, then your addon will open the character pane, and WoW will decide that the user's screen is not wide enough to show both windows at their present size and close the auction house to make room for the character panel.

You could probably override the default UI panel handling, but doing so would also probably cause things to break in combat, since some UI panels (like the spellbook) are secure.

Aside from the obvious and extremely simple solutions of increasing the screen resolution or reducing the UI scale, another solution would be to remove one or both of the windows in question from the list of frames to be managed by the Blizzard panel handling system, but then you would also need to write more code to manage their positions yourself (so they didn't overlap each other, for example). Doesn't seem worthwhile.
  Reply With Quote