1
0
Fork 0

Fix 0ce30d05c8: Replacing a dropdown list could reposition it partially off-screen. (#14261)

pull/14235/head
Peter Nelson 2025-05-13 01:22:45 +01:00 committed by GitHub
parent d37d4c18b5
commit 431e57d087
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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