Quantcast

Set the acquire_tip and spell_tip to be clamped to the screen so people who are silly enough to move the MainPanel to the edge of the screen where they have configured their tooltips to anchor will stop complaining about them being chopped off.

James D. Callahan III [06-30-10 - 23:51]
Set the acquire_tip and spell_tip to be clamped to the screen so people who are silly enough to move the MainPanel to the edge of the screen where they have configured their tooltips to anchor will stop complaining about them being chopped off.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 583e290..ea3d59d 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -543,7 +543,7 @@ do
 		spell_tip:SetBackdropColor(GameTooltip:GetBackdropColor())
 		spell_tip:SetBackdropBorderColor(GameTooltip:GetBackdropBorderColor())
 		spell_tip:SetScale(addon.db.profile.frameopts.tooltipscale)
-
+		spell_tip:SetClampedToScreen(true)
 		spell_tip:SetHyperlink(link)
 		spell_tip:Show()
 	end
@@ -823,6 +823,7 @@ do

 			acquire_tip:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", x / uiscale, y / uiscale)
 		end
+		acquire_tip:SetClampedToScreen(true)

 		if _G.TipTac and _G.TipTac.AddModifiedTip then
 			-- Pass true as second parameter because hooking OnHide causes C stack overflows -Torhal