local Targetpos = mUI:NewModule("mUI.Modules.Castbars.Targetpos", "AceHook-3.0")

function Targetpos:OnInitialize()
    function Targetpos:Update()
        TargetFrameSpellBar:ClearAllPoints()
        TargetFrameSpellBar:SetPoint("TOPLEFT", TargetFrame, "TOPLEFT", 47.5, 10)
    end
end

function Targetpos:OnEnable()
    Targetpos:SecureHookScript(TargetFrameSpellBar, "OnShow", Targetpos.Update)
    Targetpos:SecureHook(TargetFrameSpellBar, "AdjustPosition", Targetpos.Update)
end

function Targetpos:OnDisable()
    Targetpos:UnhookAll()
end
