summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-05 00:02:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-05 00:02:56 +0300
commit42992bc9561e9a684c5897ff66dc3c076900e92c (patch)
tree67bab36e36d3405a02bbfb32d006e18428b1357a /src
parentd310d2df9c1430446280dc83572c7f7cb614a1f2 (diff)
downloadplus-42992bc9561e9a684c5897ff66dc3c076900e92c.tar.gz
plus-42992bc9561e9a684c5897ff66dc3c076900e92c.tar.bz2
plus-42992bc9561e9a684c5897ff66dc3c076900e92c.tar.xz
plus-42992bc9561e9a684c5897ff66dc3c076900e92c.zip
fix resize issue in chat tabs.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/tabbedarea.cpp17
1 files changed, 7 insertions, 10 deletions
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);
}
}