From 4e7ea17666513359b02aa4c256ff4274b15f3ccf Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 18 Oct 2016 21:50:30 +0200 Subject: [PATCH] chat: fix parent of combatlog and others --- modules/chat.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/chat.lua b/modules/chat.lua index 84f417c6..704adf48 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -207,16 +207,16 @@ pfUI:RegisterModule("chat", function () if j==5 then v:SetTexture(0,0,0,0) end end - local _, relativeTo = getglobal("ChatFrame" .. i):GetPoint(1) - getglobal("ChatFrame" .. i .. "Tab"):SetParent(pfUI.chat.left.panelTop) getglobal("ChatFrame" .. i .. "ResizeBottom"):Hide() - + local _, relativeTo = getglobal("ChatFrame" .. i):GetPoint(1) if relativeTo == pfUI.chat.left then getglobal("ChatFrame" .. i .. "Tab"):SetParent(pfUI.chat.left.panelTop) - getglobal("ChatFrame" .. i):SetParent(pfUI.chat.left.panelTop) + getglobal("ChatFrame" .. i):SetParent(pfUI.chat.left) elseif relativeTo == pfUI.chat.right then getglobal("ChatFrame" .. i .. "Tab"):SetParent(pfUI.chat.right.panelTop) - getglobal("ChatFrame" .. i):SetParent(pfUI.chat.right.panelTop) + else + getglobal("ChatFrame" .. i .. "Tab"):SetParent(pfUI.chat.left.panelTop) + getglobal("ChatFrame" .. i):SetParent(pfUI.chat.left) end getglobal("ChatFrame" .. i .. "TabText"):SetJustifyV("TOP")