@@ -145,13 +145,13 @@ struct DropdownWindow : Window {
nwi = this->GetWidget<NWidgetCore>(DDM_SCROLL);
nwi->colour = wi_colour;
this->GetWidget<NWidgetStacked>(DDM_SHOW_SCROLL)->SetDisplayedPlane(scroll ? 0 : SZSP_NONE);
this->FinishInitNested(&_dropdown_desc, 0);
CLRBITS(this->flags4, WF_WHITE_BORDER_MASK);
CLRBITS(this->flags, WF_WHITE_BORDER);
/* Total length of list */
int list_height = 0;
for (DropDownList::const_iterator it = list->begin(); it != list->end(); ++it) {
DropDownListItem *item = *it;
list_height += item->Height(items_width);