diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-05 00:02:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-05 00:02:56 +0300 |
commit | 42992bc9561e9a684c5897ff66dc3c076900e92c (patch) | |
tree | 67bab36e36d3405a02bbfb32d006e18428b1357a /src/gui/widgets/tabbedarea.cpp | |
parent | d310d2df9c1430446280dc83572c7f7cb614a1f2 (diff) | |
download | ManaVerse-42992bc9561e9a684c5897ff66dc3c076900e92c.tar.gz ManaVerse-42992bc9561e9a684c5897ff66dc3c076900e92c.tar.bz2 ManaVerse-42992bc9561e9a684c5897ff66dc3c076900e92c.tar.xz ManaVerse-42992bc9561e9a684c5897ff66dc3c076900e92c.zip |
fix resize issue in chat tabs.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 17 |
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); } } |