From cd6590687618f516acaad212ff080b8ce5013e49 Mon Sep 17 00:00:00 2001 From: Simpy Date: Sun, 11 Oct 2020 12:43:54 -0400 Subject: [PATCH] use the variable vals for height in heal pred, might fix an issue when -1 doesnt work -- need to test!! --- ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua b/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua index d2b4243b1..5aaf58a65 100644 --- a/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua +++ b/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua @@ -126,10 +126,7 @@ function UF:Configure_HealComm(frame) absorbBar:SetOrientation(orientation) healAbsorbBar:SetOrientation(orientation) - local width, height = health:GetSize() - if not width or width <= 0 then width = health.WIDTH end - if not height or height <= 0 then height = health.HEIGHT end - + local width, height = health.WIDTH, health.HEIGHT if orientation == 'HORIZONTAL' then local p1 = reverseFill and 'RIGHT' or 'LEFT' local p2 = reverseFill and 'LEFT' or 'RIGHT' -- GitLab