Quantcast

Make sure the width is right for all units

Adrian L Lange [09-01-09 - 18:52]
Make sure the width is right for all units
Filename
oUF_P3lim.lua
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index 92283ae..e0fdfcc 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -214,7 +214,7 @@ local function style(self, unit)
 		self.Power.bg.multiplier = 0.3

 		self.Castbar = CreateFrame('StatusBar', nil, self)
-		self.Castbar:SetWidth(205)
+		self.Castbar:SetWidth(self.Health:GetWidth() - 25)
 		self.Castbar:SetHeight(16)
 		self.Castbar:SetStatusBarTexture(minimalist)
 		self.Castbar:SetStatusBarColor(0.25, 0.25, 0.35)