From 914073a30acf5dab4ba7f8d08d40188ae65dfa4c Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 19 Jan 2009 21:11:51 +0000 Subject: [PATCH] (svn r15153) -Fix (r15126): the scrollbar's "count" wasn't always correctly set --- src/network/network_content_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 1de6faaf47..fec971f2ac 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++) {