From e0f448ea78c78d400aa2c4d40ac66183634f3caf Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 5 Aug 2019 18:02:25 +0200 Subject: [PATCH] chat: disable padding when panel is invisible --- modules/chat.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/chat.lua b/modules/chat.lua index 101980e0..d8dd11d6 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -298,7 +298,7 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function () if i == 3 and C.chat.right.enable == "1" then -- Loot & Spam - local bottompadding = pfUI.panel and not pfUI_config.position["pfPanelRight"] and panelheight or default_border + local bottompadding = pfUI.panel and pfUI.panel.right:IsShown() and not pfUI_config.position["pfPanelRight"] and panelheight or default_border tab:SetParent(pfUI.chat.right.panelTop) frame:SetParent(pfUI.chat.right) frame:ClearAllPoints() @@ -311,7 +311,7 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function () FCF_Close(frame) elseif frame.isDocked then -- Left Chat - local bottompadding = pfUI.panel and not pfUI_config.position["pfPanelLeft"] and panelheight or default_border + local bottompadding = pfUI.panel and pfUI.panel.left:IsShown() and not pfUI_config.position["pfPanelLeft"] and panelheight or default_border FCF_DockFrame(frame) tab:SetParent(pfUI.chat.left.panelTop) frame:SetParent(pfUI.chat.left)