From 72e65a1cc2f2f9f541d24382eff4a2edb2535e57 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 24 Jan 2009 15:45:13 +0100 Subject: Tweak margins and set minimum size for chat window --- src/gui/chat.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/chat.cpp') 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(); -- cgit v1.2.3-70-g09d2