Something like this should work:
Code:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
local function MyOnEvent(self, event)
self:UnregisterEvent(event)
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("CENTER",UIParent,"CENTER", 0, 235)
FocusFrameSpellBar:SetScale(1.0)
--It gets re-positioned OnShow, so hook it and set our position again
local function MySetPoint(self, _, _, _, _, _, PreventLoop)
if not PreventLoop then
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("CENTER",UIParent,"CENTER", 0, 235, true)
end
end
hooksecurefunc(FocusFrameSpellBar, "SetPoint", MySetPoint)
end
f:SetScript("OnEvent", MyOnEvent)