summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index e6868622..e30e7116 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -35,6 +35,9 @@
#include "../playerinfo.h"
#include "../log.h"
+#include "graphics.h"
+extern Graphics *graphics;
+
#include "../net/messageout.h"
#include "../net/protocol.h"
@@ -46,8 +49,9 @@ ChatWindow::ChatWindow(const std::string &logfile):
items = 0;
items_keep = 20;
- setContentSize(600, 100);
setResizable(true);
+ setDefaultSize(0, (graphics->getHeight() - 123), 600, 100);
+ loadWindowState();
chatInput = new ChatInput();
chatInput->setEventId("chatinput");