diff --git a/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua b/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua index 5aaf58a6515a846f0c0102e3365fcf072d4c3a41..d2b4243b1218192f1f242199399b9eccb955a29c 100644 --- a/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua +++ b/ElvUI/Modules/UnitFrames/Elements/HealPrediction.lua @@ -126,7 +126,10 @@ function UF:Configure_HealComm(frame) absorbBar:SetOrientation(orientation) healAbsorbBar:SetOrientation(orientation) - local width, height = health.WIDTH, health.HEIGHT + 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 + if orientation == 'HORIZONTAL' then local p1 = reverseFill and 'RIGHT' or 'LEFT' local p2 = reverseFill and 'LEFT' or 'RIGHT'