chat: disable padding when panel is invisible

This commit is contained in:
shagu
2019-08-05 18:02:25 +02:00
parent 3625cd1844
commit e0f448ea78
+2 -2
View File
@@ -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)