| |
Well, not sure if it is a bug or not, but here's whats happening and it is quite anoying:
Cursor location is (at least I think so) obtained from OS with global coordinates, but is not translated to relative coordinates to the UIParent, thus the following issue:
Make a frame that is positioned to the leftmost part of UIParent and have it show tooltip anchored at the cursor location. Now, if you simply load that addon it works perfectly. Now change UIParent to be 100 pixels shorter and start 100 pixels to the right from left most corner (UIParent:ClearAllPoints();UIParent:SetPoint("TOPLEFT",100,0);UIParent:SetPoint("BOTTOMRIGHT",0,0);UIParent:SetUserPlaced(1); -- now, that will give an error saying "UIParent cannot be user placed, or whatnot, but will still agjust UIParent's size) now mouse over the same frame, it should be about 100 pixels to the right now. What you will see is Tooltip appearing about 100 pixels to the right of location of the mouse cursor.
What I think needs to be done is when calculating anchor for frame on mouse cursor position of UIParent needs to be taken into acount.
Cheers[ post edited by Rte ]
http://geocities.com/mods_rte/
|