diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 3f12c462..eef1150f 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -50,10 +50,9 @@ Window(""), mNetwork(network), mTmpVisible(false) setWindowName("Chat"); setResizable(true); - setDefaultSize(0, (windowContainer->getHeight() - 123), 600, 100); - loadWindowState(); + setDefaultSize(0, windowContainer->getHeight() - 123, 600, 123); - mChatInput = new ChatInput(); + mChatInput = new ChatInput; mChatInput->setActionEventId("chatinput"); mChatInput->addActionListener(this); @@ -71,6 +70,8 @@ Window(""), mNetwork(network), mTmpVisible(false) add(mScrollArea); add(mChatInput); + loadWindowState(); + // Add key listener to chat input to be able to respond to up/down mChatInput->addKeyListener(this); mCurHist = mHistory.end(); |