mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
Fix 0ce30d05c8: Replacing a dropdown list could reposition it partially off-screen. (#14261)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user