mirror of https://github.com/OpenTTD/OpenTTD
Fix 0ce30d05c8: Replacing a dropdown list could reposition it partially off-screen. (#14261)
parent
d37d4c18b5
commit
431e57d087
|
@ -348,6 +348,7 @@ struct DropdownWindow : Window {
|
|||
this->UpdateSizeAndPosition();
|
||||
this->ReInit(0, 0);
|
||||
this->InitializePositionSize(this->position.x, this->position.y, this->nested_root->smallest_x, this->nested_root->smallest_y);
|
||||
this->FindWindowPlacementAndResize(this->window_desc.GetDefaultWidth(), this->window_desc.GetDefaultHeight(), true);
|
||||
this->SetDirty();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue