Quantcast

In SetTooltipScripts(): Anchor the tooltip to the top-right of the frame instead of wherever the hell the default/AddOn-of-choice decides to put it.

James D. Callahan III [04-21-10 - 00:49]
In SetTooltipScripts(): Anchor the tooltip to the top-right of the frame instead of wherever the hell the default/AddOn-of-choice decides to put it.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 71b7991..4f3485a 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -259,7 +259,7 @@ do
 	local HIGHLIGHT_FONT_COLOR = _G.HIGHLIGHT_FONT_COLOR

 	local function Show_Tooltip(frame, motion)
-		GameTooltip_SetDefaultAnchor(GameTooltip, frame)
+		GameTooltip:SetOwner(frame, "ANCHOR_RIGHT")
 		GameTooltip:SetText(frame.tooltip_text, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b)
 		GameTooltip:Show()
 	end