1
0
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:
Peter Nelson
2025-05-13 01:22:45 +01:00
committed by GitHub
parent d37d4c18b5
commit 431e57d087

View File

@@ -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();
}
};