diff options
author | Alexander Tkachev | 2019-08-04 04:43:53 +0700 |
---|---|---|
committer | Alexander Tkachev | 2019-08-04 04:43:53 +0700 |
commit | 2c31e6cbe547f309268796101459ce110f8e4c15 (patch) | |
tree | a80aa0cec1ca4e12ed57620c3787c13b7bd62637 /gui/options.cpp | |
parent | 1c0b697a59472445e7b8847e566974b503ce012d (diff) | |
download | scummvm-rg350-2c31e6cbe547f309268796101459ce110f8e4c15.tar.gz scummvm-rg350-2c31e6cbe547f309268796101459ce110f8e4c15.tar.bz2 scummvm-rg350-2c31e6cbe547f309268796101459ce110f8e4c15.zip |
GUI: Fix Options' Cloud tab scrollbar issue
Calling reflowLayout() not only updates the layout (as setupCloudTab()
was already doing), but also recalculates scrollbar. The issue was that
old layout didn't need a scrollbar, but updated layout did. But,
ScrollContainer was not notified, and thus scrollbar didn't appear
(until user tried to reselect the Storage via popup).
Diffstat (limited to 'gui/options.cpp')
-rw-r--r-- | gui/options.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index b3f1817c56..e3d7612c51 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -2439,8 +2439,7 @@ void GlobalOptionsDialog::handleTickle() { #ifdef USE_CLOUD #ifdef USE_LIBCURL if (_redrawCloudTab) { - setupCloudTab(); - g_gui.scheduleTopDialogRedraw(); + reflowLayout(); // recalculates scrollbar as well _redrawCloudTab = false; } #endif // USE_LIBCURL |