diff options
author | rubidium <rubidium@openttd.org> | 2009-01-19 21:11:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-19 21:11:51 +0000 |
commit | 914073a30acf5dab4ba7f8d08d40188ae65dfa4c (patch) | |
tree | 9fdf95f19c9a0ca59cbf432fdfe40f03be20ce62 | |
parent | 537112fcb1345a3dd44bea608a63fc625be90313 (diff) | |
download | openttd-914073a30acf5dab4ba7f8d08d40188ae65dfa4c.tar.xz |
(svn r15153) -Fix (r15126): the scrollbar's "count" wasn't always correctly set
-rw-r--r-- | src/network/network_content_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 1de6faaf4..fec971f2a 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -434,6 +434,7 @@ public: this->HideWidget(NCLWW_SELECT_UPDATE); } + SetVScrollCount(this, this->infos.Length()); this->FindWindowPlacementAndResize(desc); } @@ -759,6 +760,7 @@ public: if (this->selected == NULL) this->selected = rci; *this->infos.Append() = rci; + SetVScrollCount(this, this->infos.Length()); /* Incoming data means that we might need to reconsider dependencies */ for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) { |