summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 15:23:34 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 15:25:28 +0100
commit72f5288682f46af1f7c04c002172178c880e060b (patch)
tree444ef1af05fc74dd072ad2be51c6ff7ab7ce976e /src/gui/chat.cpp
parentbe25d46954a98b2590b522de5f8aa470ba4f9e81 (diff)
downloadMana-72f5288682f46af1f7c04c002172178c880e060b.tar.gz
Mana-72f5288682f46af1f7c04c002172178c880e060b.tar.bz2
Mana-72f5288682f46af1f7c04c002172178c880e060b.tar.xz
Mana-72f5288682f46af1f7c04c002172178c880e060b.zip
Fixed inconsistency in default window sizes
The default window sizes were all too small, since they were specified in content size. On pressing "Reset Windows", the sizes would be interpreted as such and apply alright. The inconsistency is now removed, and the default window sizes are always the size of the whole widget now, not just the contents. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 5477ad4a..0c7cc1db 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -49,10 +49,9 @@ ChatWindow::ChatWindow(Network *network):
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);
@@ -70,6 +69,8 @@ ChatWindow::ChatWindow(Network *network):
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();