(svn r20172) -Codechange: Use BaseVehicleListWindow::BuildActionDropdownList() also for the normal vehicle list.

This commit is contained in:
frosch
2010-07-17 14:58:35 +00:00
parent 240e8df052
commit f06560ad45
3 changed files with 15 additions and 28 deletions

View File

@@ -236,7 +236,7 @@ public:
break;
case GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN: {
Dimension d = this->GetActionDropdownSize(true);
Dimension d = this->GetActionDropdownSize(true, true);
d.height += padding.height;
d.width += padding.width;
*size = maxdim(*size, d);
@@ -473,7 +473,7 @@ public:
break;
case GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN: {
DropDownList *list = this->BuildActionDropdownList(Group::IsValidID(this->group_sel));
DropDownList *list = this->BuildActionDropdownList(true, Group::IsValidID(this->group_sel));
ShowDropDownList(this, list, 0, GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN);
break;
}