summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 15:45:13 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 15:45:13 +0100
commit72e65a1cc2f2f9f541d24382eff4a2edb2535e57 (patch)
treeac42c9bf4de9becc387e21bf9c6f786c9677af1c
parent5cb25cbc0b6b6d05a642d4a9d62b6b5895ef94b8 (diff)
downloadmana-72e65a1cc2f2f9f541d24382eff4a2edb2535e57.tar.gz
mana-72e65a1cc2f2f9f541d24382eff4a2edb2535e57.tar.bz2
mana-72e65a1cc2f2f9f541d24382eff4a2edb2535e57.tar.xz
mana-72e65a1cc2f2f9f541d24382eff4a2edb2535e57.zip
Tweak margins and set minimum size for chat window
-rw-r--r--src/gui/chat.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index a5a3438d..87d843a0 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -54,6 +54,8 @@ ChatWindow::ChatWindow(Network *network):
setResizable(true);
setDefaultSize(0, windowContainer->getHeight() - 123, 600, 123);
+ setMinWidth(150);
+ setMinHeight(90);
mChatInput = new ChatInput;
mChatInput->setActionEventId("chatinput");
@@ -70,11 +72,12 @@ ChatWindow::ChatWindow(Network *network):
gcn::ScrollArea::SHOW_NEVER, gcn::ScrollArea::SHOW_ALWAYS);
mScrollArea->setOpaque(false);
- place(0, 0, mScrollArea, 5, 5);
- place(0, 5, mChatInput, 5);
+ place(0, 0, mScrollArea, 5, 5).setPadding(0);
+ place(0, 5, mChatInput, 5).setPadding(1);
Layout &layout = getLayout();
layout.setRowHeight(0, Layout::AUTO_SET);
+ layout.setMargin(2);
loadWindowState();