diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-11 22:34:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-11 22:34:04 +0300 |
commit | 6ef15759c7e598f4d0c49a262562c9135fab0e5e (patch) | |
tree | a5a5899107bf30f97b778f5953af740a322328e2 /src/gui/windows | |
parent | 7673f5a15fe51640fd2eeccba9bee94b9d8c737d (diff) | |
download | mv-6ef15759c7e598f4d0c49a262562c9135fab0e5e.tar.gz mv-6ef15759c7e598f4d0c49a262562c9135fab0e5e.tar.bz2 mv-6ef15759c7e598f4d0c49a262562c9135fab0e5e.tar.xz mv-6ef15759c7e598f4d0c49a262562c9135fab0e5e.zip |
fix bot checker window in some themes.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/botcheckerwindow.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/gui/windows/botcheckerwindow.cpp b/src/gui/windows/botcheckerwindow.cpp index 74dd38ddd..57c3c3712 100644 --- a/src/gui/windows/botcheckerwindow.cpp +++ b/src/gui/windows/botcheckerwindow.cpp @@ -316,18 +316,23 @@ BotCheckerWindow::BotCheckerWindow(): setDefaultSize(w, h, ImageRect::CENTER); playersScrollArea->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER); + mIncButton->adjustSize(); - mPlayerTitleTable->setPosition(mPadding, mPadding); - mPlayerTitleTable->setWidth(w - 10); + const int pad4 = mPadding * 4; + int y = mPadding; + mPlayerTitleTable->setPosition(mPadding, y); + mPlayerTitleTable->setWidth(w - pad4); mPlayerTitleTable->setHeight(20); - playersScrollArea->setPosition(mPadding, 20 + 2 * mPadding); - playersScrollArea->setWidth(w - 15); - playersScrollArea->setHeight(h - 80); + y += 20 + mPadding; + playersScrollArea->setPosition(mPadding, y); + playersScrollArea->setWidth(w - pad4); + const int scrollHeight = h - y - mTitleBarHeight - mPadding * 3 + - mIncButton->getHeight(); + playersScrollArea->setHeight(scrollHeight); + y += scrollHeight + mPadding; - mIncButton->setPosition(mPadding, 190 + 3 * mPadding); - mIncButton->setWidth(80); - mIncButton->setHeight(20); + mIncButton->setPosition(mPadding, y); add(mPlayerTitleTable); add(playersScrollArea); |