From 14c9c341d5b966d5bd61c664e9a47216072807f3 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Wed, 20 Oct 2010 01:23:56 +0000 Subject: [PATCH] Reanchor bars so they're not ugly. --- Modules/Bars/Bars.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/Bars/Bars.lua b/Modules/Bars/Bars.lua index f40688d..62d478c 100644 --- a/Modules/Bars/Bars.lua +++ b/Modules/Bars/Bars.lua @@ -237,7 +237,9 @@ local function createBars() arg5 = (arg5 or 0) bar:SetPoint(arg1, arg2, arg3, arg4, arg5) end - bar:SetWidth(v.width or 20) + if type(v.width) == "number" then + bar:SetWidth(v.width) + end bar:SetHeight(v.height) bar:SetMinMaxValues(0, 100) bar:Show() -- 1.7.9.5