summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 15:45:13 +0100
committerIra Rice <irarice@gmail.com>2009-01-24 08:33:02 -0700
commitcee64c1215948a92f7b7bd569134c8e8a393f95c (patch)
treecabd8047c0e1c143210ca41c7e358976ccf20c76 /src/gui
parent7b64259cbdf2987159671c3226b42d902942b275 (diff)
downloadmana-cee64c1215948a92f7b7bd569134c8e8a393f95c.tar.gz
mana-cee64c1215948a92f7b7bd569134c8e8a393f95c.tar.bz2
mana-cee64c1215948a92f7b7bd569134c8e8a393f95c.tar.xz
mana-cee64c1215948a92f7b7bd569134c8e8a393f95c.zip
Tweak margins and set minimum size for chat window
Diffstat (limited to 'src/gui')
-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 20065106..031b6811 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -60,6 +60,8 @@ Window(""), mNetwork(network), mTmpVisible(false)
setResizable(true);
setDefaultSize(0, windowContainer->getHeight() - 123, 600, 123);
+ setMinWidth(150);
+ setMinHeight(90);
mItemLinkHandler = new ItemLinkHandler();
@@ -80,11 +82,12 @@ Window(""), mNetwork(network), mTmpVisible(false)
mScrollArea->setScrollAmount(0, 1);
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();