diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 1e22772b..5477ad4a 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -75,10 +75,9 @@ ChatWindow::ChatWindow(Network *network): mCurHist = mHistory.end(); } -void -ChatWindow::logic() +void ChatWindow::widgetResized(const gcn::Event &event) { - // todo: only do this when the size changes (updateWidgets?) + Window::widgetResized(event); const gcn::Rectangle area = getChildrenArea(); @@ -89,7 +88,6 @@ ChatWindow::logic() mScrollArea->setWidth(area.width - 2 * mScrollArea->getFrameSize()); mScrollArea->setHeight(area.height - 2 * mScrollArea->getFrameSize() - mChatInput->getHeight() - 5); - mScrollArea->logic(); } void |