Quantcast

Fixed a bug with chat positioning when chat handle is enabled and chat dataoanels are hidden.

Darthpred [08-26-14 - 18:20]
Fixed a bug with chat positioning when chat handle is enabled and chat dataoanels are hidden.
Filename
ElvUI_SLE/modules/chat.lua
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