bags: reduce size if panels are hidden

This commit is contained in:
shagu
2021-08-25 17:18:20 +02:00
parent 8fa09f4c28
commit 5c3c252365
+1 -1
View File
@@ -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