From 42992bc9561e9a684c5897ff66dc3c076900e92c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Jul 2013 00:02:56 +0300 Subject: fix resize issue in chat tabs. --- src/gui/widgets/tabbedarea.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 3fb3170b8..de88a3e50 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -471,18 +471,15 @@ void TabbedArea::adjustSize() mWidgetContainer->setPosition(0, maxTabHeight); mWidgetContainer->setSize(width, height - maxTabHeight); - if (!mFollowDownScroll) + gcn::Widget *const w = getCurrentWidget(); + if (w) { - gcn::Widget *const w = getCurrentWidget(); - if (w) - { - const int wFrameSize = w->getFrameSize(); - const int frame2 = 2 * wFrameSize; + const int wFrameSize = w->getFrameSize(); + const int frame2 = 2 * wFrameSize; - w->setPosition(wFrameSize, wFrameSize); - w->setSize(mWidgetContainer->getWidth() - frame2, - mWidgetContainer->getHeight() - frame2); - } + w->setPosition(wFrameSize, wFrameSize); + w->setSize(mWidgetContainer->getWidth() - frame2, + mWidgetContainer->getHeight() - frame2); } } -- cgit v1.2.3-60-g2f50