Merge pull request #44906 from EricEzaM/PR/popup-menu-fix-not-matching-button-size

Fixed PopupMenu not matching parent MenuButton/OptionButton width
This commit is contained in:
Rémi Verschelde 2021-01-04 14:47:32 +01:00 committed by GitHub
commit 321a4d5e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1630,7 +1630,6 @@ void PopupMenu::_bind_methods() {
void PopupMenu::popup(const Rect2 &p_bounds) {
moved = Vector2();
popup_time_msec = OS::get_singleton()->get_ticks_msec();
set_as_minsize();
Popup::popup(p_bounds);
}