modules: make chat module independent

This commit is contained in:
shagu
2016-12-10 15:38:28 +01:00
parent 4bf37442b5
commit 8700478453
+7 -1
View File
@@ -474,7 +474,13 @@ pfUI:RegisterModule("chat", function ()
end
pfUI.chat.editbox:ClearAllPoints()
pfUI.chat.editbox:SetPoint("BOTTOM", pfUI.bars.bottom, "TOP", 0, default_border*4)
local anchor
if pfUI.bars then
anchor = pfUI.bars.bottom
else
anchor = pfUI.chat.left
end
pfUI.chat.editbox:SetPoint("BOTTOM", anchor, "TOP", 0, default_border*4)
pfUI.utils:UpdateMovable(pfUI.chat.editbox)
if pfUI_config.chat.text.input_width == "0" then