Fix PopupMenu icon and text not having separation

This commit is contained in:
Haoyu Qiu 2023-09-07 18:09:59 +08:00 committed by Relintai
parent f7f7c17962
commit e3dd88e9ec

View File

@ -522,6 +522,9 @@ void PopupMenu::_draw_items() {
has_check = true;
}
}
if (icon_ofs > 0.0) {
icon_ofs += hseparation;
}
float check_ofs = 0.0;
if (has_check) {