From d5fc6fe1576695ab8cb9d7d2644113c02bccac73 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Feb 2013 12:56:25 +0300 Subject: Fix resize issue in who is online window in some themes. --- src/gui/whoisonline.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/gui') diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index df2e5a47e..47189f6f5 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -122,6 +122,7 @@ WhoIsOnline::WhoIsOnline(): download(); + widgetResized(nullptr); config.addListener("updateOnlineList", this); config.addListener("groupFriends", this); mUpdateOnlineList = config.getBoolValue("updateOnlineList"); @@ -303,6 +304,7 @@ void WhoIsOnline::loadList(std::vector &list) if (socialWindow) socialWindow->updateActiveList(); } + updateSize(); } void WhoIsOnline::loadWebList() @@ -691,15 +693,14 @@ void WhoIsOnline::widgetResized(const gcn::Event &event) void WhoIsOnline::updateSize() { - if (mDownloadStatus == UPDATE_COMPLETE) - { - const gcn::Rectangle area = getChildrenArea(); - if (mUpdateButton) - mUpdateButton->setWidth(area.width - 10); - - if (mScrollArea) - mScrollArea->setSize(area.width - 10, area.height - 10 - 30); - } + const gcn::Rectangle area = getChildrenArea(); + if (mUpdateButton) + mUpdateButton->setWidth(area.width - 10); + + if (mScrollArea) + mScrollArea->setSize(area.width - 10, area.height - 10 - 30); + if (mBrowserBox) + mBrowserBox->setWidth(area.width - 10); } const std::string WhoIsOnline::prepareNick(std::string nick, int level, -- cgit v1.2.3-60-g2f50