View Single Post
07-11-15, 08:31 AM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
I don't believe ANCHOR_NONE actually sets the tooltip to the default position, it behaves essentially the same way as calling GameTooltip:ClearAllPoints()

To mimic the default behavior, what you actually want to use is GameTooltip_SetDefaultAnchor(GameTooltip, UIParent), which is defined in frameXML\GameTooltip.lua

Lua Code:
  1. function GameTooltip_SetDefaultAnchor(tooltip, parent)      
  2.   tooltip:SetOwner(parent, "ANCHOR_NONE");
  3.   tooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13, CONTAINER_OFFSET_Y);
  4.   tooltip.default = 1;
  5. end
  Reply With Quote