Merge pull request #28611 from YeldhamDev/popupmenu_regressionmania

Fix regression in 'PopupMenu' when icons have different values for width and height
This commit is contained in:
Rémi Verschelde 2019-05-02 17:12:37 +02:00 committed by GitHub
commit b0931806c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,7 +449,7 @@ void PopupMenu::_notification(int p_what) {
for (int i = 0; i < items.size(); i++) {
if (!items[i].icon.is_null())
icon_ofs = MAX(items[i].icon->get_size().height, icon_ofs);
icon_ofs = MAX(items[i].icon->get_size().width, icon_ofs);
if (items[i].checkable_type)
has_check = true;