diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-07 15:23:34 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-07 20:04:18 -0700 |
commit | ca96882fe9319f687fce46c18f6edc671e4efc8a (patch) | |
tree | 7ae83e3613fdea072feac03296c39123b24826f7 /src/gui/chat.cpp | |
parent | 65e00cfe8c9ec876e3fadadac99a6cad0697283d (diff) | |
download | mana-ca96882fe9319f687fce46c18f6edc671e4efc8a.tar.gz mana-ca96882fe9319f687fce46c18f6edc671e4efc8a.tar.bz2 mana-ca96882fe9319f687fce46c18f6edc671e4efc8a.tar.xz mana-ca96882fe9319f687fce46c18f6edc671e4efc8a.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.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(); |