From ff39a212b876fa2771012be3edc3c358549a6b7b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 23 Aug 2014 18:15:22 +0200 Subject: [PATCH] Adjust the portrait height when power is missing too --- oUF_P3lim.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 69cdfb9..d09ed61 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -15,7 +15,11 @@ local GLOW = { } local function PostUpdatePower(element, unit, cur, max) - element.__owner.Health:SetHeight(max ~= 0 and 20 or 22) + local parent = element.__owner + local height = max ~= 0 and 20 or 22 + parent.Health:SetHeight(height) + parent.Portrait.scrollFrame:SetHeight(height) + parent.Portrait.scrollFrame:GetScrollChild():SetHeight(height) end local function PostUpdateHealth(element, unit, cur, max) -- 1.7.9.5