Catching up with Elv in UF code
Darthpred [11-13-12 - 08:17]
Catching up with Elv in UF code
diff --git a/ElvUI_SLE/modules/unitframes/units/player.lua b/ElvUI_SLE/modules/unitframes/units/player.lua
index 6109b27..e1840eb 100644
--- a/ElvUI_SLE/modules/unitframes/units/player.lua
+++ b/ElvUI_SLE/modules/unitframes/units/player.lua
@@ -68,18 +68,19 @@ function UF:Update_PlayerFrame(frame, db)
if USE_PORTRAIT_OVERLAY or not USE_PORTRAIT then
PORTRAIT_WIDTH = 0
- if USE_POWERBAR_OFFSET then
- CLASSBAR_WIDTH = CLASSBAR_WIDTH - POWERBAR_OFFSET
- end
end
if USE_PORTRAIT then
- CLASSBAR_WIDTH = math.ceil((UNIT_WIDTH - (BORDER*2)) - PORTRAIT_WIDTH)
+ CLASSBAR_WIDTH = (UNIT_WIDTH - (BORDER*2)) - PORTRAIT_WIDTH
end
if USE_POWERBAR_OFFSET then
CLASSBAR_WIDTH = CLASSBAR_WIDTH - POWERBAR_OFFSET
end
+
+ if USE_MINI_POWERBAR then
+ POWERBAR_WIDTH = POWERBAR_WIDTH / 2
+ end
end
health:ClearAllPoints()