Quantcast

Force a length and height if not configured.

Scott Sibley [07-03-11 - 05:43]
Force a length and height if not configured.
Filename
Modules/Bars/Bars.lua
diff --git a/Modules/Bars/Bars.lua b/Modules/Bars/Bars.lua
index 881f924..87fb9b1 100644
--- a/Modules/Bars/Bars.lua
+++ b/Modules/Bars/Bars.lua
@@ -296,10 +296,8 @@ local function createBars()
 					arg5 = (arg5 or 0)
 					bar:SetPoint(arg1, arg2, arg3, arg4, arg5)
 				end
-				if type(v.length) == "number" then
-					bar:SetWidth(v.length)
-				end
-				bar:SetHeight(v.height)
+				bar:SetWidth(v.length or 10)
+				bar:SetHeight(v.height or 10)
 				bar:SetMinMaxValues(0, 100)
 				bar:Show()
 				bar:SetFrameStrata(strataNameList[v.layer or 1])