From 5660670f2c47be898cb041428f4d9e1ab4bb005c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 13 Nov 2012 12:10:10 +0400 Subject: [PATCH] Fix for wrong sizing of health bar with classbar offset enabled --- ElvUI_SLE/modules/unitframes/units/player.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ElvUI_SLE/modules/unitframes/units/player.lua b/ElvUI_SLE/modules/unitframes/units/player.lua index 7aca9e2..6109b27 100644 --- a/ElvUI_SLE/modules/unitframes/units/player.lua +++ b/ElvUI_SLE/modules/unitframes/units/player.lua @@ -28,11 +28,12 @@ function UF:Update_PlayerFrame(frame, db) local health = frame.Health local power = frame.Power - local BORDER = E:Scale(2) - local SPACING = E:Scale(1) + local BORDER = E.Border + local SPACING = E.Spacing + local SHADOW_SPACING = E.PixelMode and 3 or 4 local UNIT_WIDTH = db.width local UNIT_HEIGHT = db.height - + local USE_POWERBAR = db.power.enable local USE_MINI_POWERBAR = db.power.width ~= 'fill' and USE_POWERBAR local USE_POWERBAR_OFFSET = db.power.offset ~= 0 and USE_POWERBAR -- 1.7.9.5