fix castbar width/height being 0 on import
This commit is contained in:
parent
27eeade507
commit
66931e18f9
@ -879,6 +879,12 @@ function Castbar:LegacySetPosition(castBar, unit, leftMargin, rightMargin)
|
|||||||
return Gladdy.db.newLayout
|
return Gladdy.db.newLayout
|
||||||
end
|
end
|
||||||
castBar:ClearAllPoints()
|
castBar:ClearAllPoints()
|
||||||
|
if Gladdy.db.castBarWidth <= 0 then
|
||||||
|
castBar:SetWidth(0.1)
|
||||||
|
end
|
||||||
|
if Gladdy.db.castBarHeight <= 0 then
|
||||||
|
castBar:SetHeight(0.1)
|
||||||
|
end
|
||||||
local horizontalMargin = (Gladdy.db.highlightInset and 0 or Gladdy.db.highlightBorderSize) + Gladdy.db.padding
|
local horizontalMargin = (Gladdy.db.highlightInset and 0 or Gladdy.db.highlightBorderSize) + Gladdy.db.padding
|
||||||
if (Gladdy.db.castBarPos == "LEFT") then
|
if (Gladdy.db.castBarPos == "LEFT") then
|
||||||
local anchor = Gladdy:GetAnchor(unit, "LEFT")
|
local anchor = Gladdy:GetAnchor(unit, "LEFT")
|
||||||
|
Loading…
Reference in New Issue
Block a user