From 66931e18f96e7169c9535f8c1e1774710c08aa84 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Tue, 25 Jan 2022 20:41:32 +0100 Subject: [PATCH] fix castbar width/height being 0 on import --- Modules/Castbar.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/Castbar.lua b/Modules/Castbar.lua index 3bf8f65..38f0ff0 100644 --- a/Modules/Castbar.lua +++ b/Modules/Castbar.lua @@ -879,6 +879,12 @@ function Castbar:LegacySetPosition(castBar, unit, leftMargin, rightMargin) return Gladdy.db.newLayout end 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 if (Gladdy.db.castBarPos == "LEFT") then local anchor = Gladdy:GetAnchor(unit, "LEFT")