From f727bdf6c89ea0c9ad874c739d76220d13e3f324 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 25 Jul 2014 02:18:08 +0400 Subject: [PATCH] A bit better --- ElvUI_SLE/modules/chat.lua | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/ElvUI_SLE/modules/chat.lua b/ElvUI_SLE/modules/chat.lua index e2c4f3a..f79990d 100644 --- a/ElvUI_SLE/modules/chat.lua +++ b/ElvUI_SLE/modules/chat.lua @@ -159,6 +159,7 @@ end local PixelOff = E.PixelMode and 31 or 27 local function Position() + if not E.db.sle.datatext.chathandle then return end local BASE_OFFSET = 60 if E.PixelMode then BASE_OFFSET = BASE_OFFSET - 3 @@ -180,21 +181,17 @@ local function Position() end]] if point == "BOTTOMRIGHT" and chat:IsShown() and not (id > NUM_CHAT_WINDOWS) and id == CH.RightChatWindowID then chat:ClearAllPoints() - if E.db.sle.datatext.chathandle then - if E.db.datatexts.rightChatPanel then - chat:Point("BOTTOMRIGHT", RightChatDataPanel, "TOPRIGHT", 10, 3) - end - if id ~= 2 then - chat:SetSize(E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - PixelOff)) - end + if E.db.datatexts.rightChatPanel then + chat:Point("BOTTOMRIGHT", RightChatDataPanel, "TOPRIGHT", 10, 3) + end + if id ~= 2 then + chat:SetSize(E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - PixelOff)) end elseif not isDocked and chat:IsShown() then else - if E.db.sle.datatext.chathandle then - if id ~= 2 and not (id > NUM_CHAT_WINDOWS) then - chat:Size(E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - PixelOff)) - end + if id ~= 2 and not (id > NUM_CHAT_WINDOWS) then + chat:Size(E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - PixelOff)) end end end -- 1.7.9.5