Mercurial > hg > openttd
changeset 20592:a2b2b427f73d draft
(svn r25536) -Cleanup: No need to set scrollbar capacity anywhere but in OnResize.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 30 Jun 2013 14:36:07 +0000 |
parents | 7eaf4b53c2d9 |
children | 862c25eab589 |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1170,10 +1170,8 @@ int i = 0; for (const GRFConfig *c = this->actives; c != NULL; c = c->next, i++) {} - this->vscroll->SetCapacityFromWidget(this, WID_NS_FILE_LIST); this->vscroll->SetCount(i + 1); // Reserve empty space for drag and drop handling. - this->vscroll2->SetCapacityFromWidget(this, WID_NS_AVAIL_LIST); if (this->avail_pos >= 0) this->vscroll2->ScrollTowards(this->avail_pos); break; }