Hi SDPhantom,
thanks so much for your help.
It seems that it works nicely.
I have also moved the code out of the reposition function as you suggest.
Lua Code:
-- CastBars
hooksecurefunc("Target_Spellbar_AdjustPosition", function(self)
if self == TargetFrameSpellBar then
self:ClearAllPoints()
self:SetPoint("CENTER", UIParent, "CENTER", 0, -30)
end
end)
TargetFrameSpellBar:SetScale(2.0)
TargetFrameSpellBar.Icon:SetAlpha(0)
TargetFrameSpellBar.BorderShield:SetAlpha(0)
TargetFrameSpellBar:SetScript("OnShow",Target_Spellbar_AdjustPosition)
Thanks again so much ...