Commit d6fbd552 authored by Blazeflack's avatar Blazeflack

Fixed issue which broke the detached castbar icon size setting

parent 1f6663ba
......@@ -64,13 +64,13 @@ local function SetCastbarSizeAndPosition(unit, unitframe, overlayFrame)
castbar:SetFrameStrata(frameStrata)
castbar:SetFrameLevel(frameLevel)
--Adjust size of castbar icon
castbar.ButtonIcon.bg:Size(overlayHeight + unitframe.BORDER*2)
-- Position the castbar on overLayFrame
if (not cdb.iconAttached) then
castbar:SetInside(overlayFrame, 0, 0)
else
--Adjust size of castbar icon
castbar.ButtonIcon.bg:Size(overlayHeight + unitframe.BORDER*2)
local iconWidth = cdb.icon and (castbar.ButtonIcon.bg:GetWidth() - unitframe.BORDER) or 0
castbar:ClearAllPoints()
if(unitframe.ORIENTATION == "RIGHT") then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment