Fix regression in 'PopupMenu' when icons have different values for width and height

This commit is contained in:
Michael Alexsander Silva Dias 2019-05-01 23:59:47 -03:00
parent 0eb924a425
commit d6489374e7

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;