From ca96882fe9319f687fce46c18f6edc671e4efc8a Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 7 Dec 2008 15:23:34 +0100 Subject: Fixed inconsistency in default window sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gui/chat.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/chat.cpp') 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(); -- cgit v1.2.3-70-g09d2