Quantcast

Reanchor bars so they're not ugly.

Scott Sibley [10-20-10 - 01:23]
Reanchor bars so they're not ugly.
Filename
Modules/Bars/Bars.lua
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()