From 8b6169f0bdc1da0bb4bccea532f8a94fb28fb49d Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 28 Jul 2016 22:10:28 +0300 Subject: [PATCH] This should help --- ElvUI_SLE/modules/chat/chat.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua index d27c2ce..c1d469c 100644 --- a/ElvUI_SLE/modules/chat/chat.lua +++ b/ElvUI_SLE/modules/chat/chat.lua @@ -35,9 +35,16 @@ local function PositionChat(self, override) if C.CreatedFrames == 0 then return end if ((T.InCombatLockdown() and not override and self.initialMove) or (IsMouseButtonDown("LeftButton") and not override)) then return end if not RightChatPanel or not LeftChatPanel then return; end - if not self.db.lockPositions or E.private.chat.enable ~= true then return end - if not E.db.sle.datatexts.chathandle then return end local chat, id, tab, isDocked, point + if not self.db.lockPositions or E.private.chat.enable ~= true then + for i=1, C.CreatedFrames do + chat = _G[T.format("ChatFrame%d", i)] + tab = _G[T.format("ChatFrame%sTab", i)] + tab.isDocked = chat.isDocked + end + return + end + if not E.db.sle.datatexts.chathandle then return end for i=1, C.CreatedFrames do local BASE_OFFSET = 57 + E.Spacing*3 chat = _G[T.format("ChatFrame%d", i)] -- 1.7.9.5