From 5c3c252365822b0c7d55ae2665988dc8c79113ad Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 25 Aug 2021 17:18:20 +0200 Subject: [PATCH] bags: reduce size if panels are hidden --- modules/bags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bags.lua b/modules/bags.lua index eb112868..86180d5a 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -277,7 +277,7 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function () end if x > 0 then y = y + 1 end - if pfUI.panel then topspace = topspace + pfUI.panel.right:GetHeight() end + if pfUI.panel and pfUI.panel.right:IsShown() then topspace = topspace + pfUI.panel.right:GetHeight() end frame:SetHeight( default_border*2 + y*(frame.button_size+default_border*3) + topspace) local chat = pfUI.chat and ( object == "bank" and pfUI.chat.left or pfUI.chat.right) or nil