summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-21 13:08:30 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-21 13:08:30 +0000
commit24681ad4312d804aa06c8ace7d1a9f2f9605a4eb (patch)
treecde8781349e72fa8ed247a95036746b71f494883 /src/gui/chat.cpp
parentff6ddee79b67f756477f08cd7793b0e26bbe71d9 (diff)
downloadmana-client-24681ad4312d804aa06c8ace7d1a9f2f9605a4eb.tar.gz
mana-client-24681ad4312d804aa06c8ace7d1a9f2f9605a4eb.tar.bz2
mana-client-24681ad4312d804aa06c8ace7d1a9f2f9605a4eb.tar.xz
mana-client-24681ad4312d804aa06c8ace7d1a9f2f9605a4eb.zip
Fixed chat window size issue
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 2ed6cade..8944d521 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -53,7 +53,7 @@ ChatWindow::ChatWindow():
mTmpVisible(false)
{
setResizable(true);
- setDefaultSize(0, (windowContainer->getHeight() - 105), 600, 100);
+ setDefaultSize(0, (windowContainer->getHeight() - 105), 400, 100);
setTitleBarHeight(5);
loadWindowState("Chat");
@@ -65,6 +65,7 @@ ChatWindow::ChatWindow():
textOutput->setOpaque(false);
textOutput->disableLinksAndUserColors();
textOutput->setMaxRow((int) config.getValue("ChatLogLength", 0));
+
ScrollArea *scrollArea = new ScrollArea(textOutput);
scrollArea->setPosition(
scrollArea->getFrameSize(), scrollArea->getFrameSize());
@@ -113,7 +114,8 @@ ChatWindow::logic()
ScrollArea *scroll = chan->second.scroll;
scroll->setWidth(area.width - 2 * scroll->getFrameSize());
scroll->setHeight(area.height - 2 * scroll->getFrameSize() -
- mChatInput->getHeight() - 26);
+ mChatInput->getHeight() - 5);
+ scroll->logic();
}
Window::logic();