Skip to content

Commit

Permalink
Merge pull request #47180 from YeldhamDev/popupmenu_width_fix
Browse files Browse the repository at this point in the history
Fix wrong width with PopupMenus on first opening in the editor
  • Loading branch information
akien-mga authored Mar 22, 2021
2 parents 89d3c78 + 1bece0d commit bb83403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/popup_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bb83403

Please sign in to comment.