Merge pull request #47180 from YeldhamDev/popupmenu_width_fix

Fix wrong width with PopupMenus on first opening in the editor
This commit is contained in:
Rémi Verschelde 2021-03-22 23:51:57 +01:00 committed by GitHub
commit bb8340302c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -722,6 +722,7 @@ void PopupMenu::_notification(int p_what) {
for (int i = 0; i < items.size(); i++) {
items.write[i].xl_text = tr(items[i].text);
items.write[i].dirty = true;
_shape_item(i);
}
child_controls_changed();