From e3dd88e9ec9ea16ed24df41695d7afc750ddddd0 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 7 Sep 2023 18:09:59 +0800 Subject: [PATCH] Fix PopupMenu icon and text not having separation --- scene/gui/popup_menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index cc5ebe21a..5464db387 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -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) {