Commit cd659068 authored by Simpy's avatar Simpy 🐹

use the variable vals for height in heal pred, might fix an issue when -1...

use the variable vals for height in heal pred, might fix an issue when -1 doesnt work -- need to test!!
parent 4ae7d51d
...@@ -126,10 +126,7 @@ function UF:Configure_HealComm(frame) ...@@ -126,10 +126,7 @@ function UF:Configure_HealComm(frame)
absorbBar:SetOrientation(orientation) absorbBar:SetOrientation(orientation)
healAbsorbBar:SetOrientation(orientation) healAbsorbBar:SetOrientation(orientation)
local width, height = health:GetSize() local width, height = health.WIDTH, health.HEIGHT
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 if orientation == 'HORIZONTAL' then
local p1 = reverseFill and 'RIGHT' or 'LEFT' local p1 = reverseFill and 'RIGHT' or 'LEFT'
local p2 = reverseFill and 'LEFT' or 'RIGHT' local p2 = reverseFill and 'LEFT' or 'RIGHT'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment