From 0fdf679f5369b394c2068e2e660133b122712981 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 26 Aug 2014 22:20:04 +0400 Subject: [PATCH] Fixed a bug with chat positioning when chat handle is enabled and chat dataoanels are hidden. --- ElvUI_SLE/modules/chat.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElvUI_SLE/modules/chat.lua b/ElvUI_SLE/modules/chat.lua index 7b4dc41..b9c2392 100644 --- a/ElvUI_SLE/modules/chat.lua +++ b/ElvUI_SLE/modules/chat.lua @@ -150,6 +150,9 @@ local function Position() chat:ClearAllPoints() if E.db.datatexts.rightChatPanel then chat:Point("BOTTOMRIGHT", RightChatDataPanel, "TOPRIGHT", 10, 3) + else + BASE_OFFSET = BASE_OFFSET - 24 + chat:SetPoint("BOTTOMLEFT", RightChatPanel, "BOTTOMLEFT", 4, 4) end if id ~= 2 then chat:SetSize(E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - PixelOff)) @@ -158,6 +161,10 @@ local function Position() else if id ~= 2 and not (id > NUM_CHAT_WINDOWS) then + if not E.db.datatexts.leftChatPanel then + BASE_OFFSET = BASE_OFFSET - 24 + chat:SetPoint("BOTTOMLEFT", LeftChatPanel, "BOTTOMLEFT", 1, 4) + end chat:Size(E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - PixelOff)) end end -- 1.7.9.5