mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r25536) -Cleanup: No need to set scrollbar capacity anywhere but in OnResize.
This commit is contained in:
parent
634607573f
commit
8116aeff21
@ -1170,10 +1170,8 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user