From 78a11ea48c44a031fef09d5767c52dfa800fc055 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 6c37752056b..0dfd56cdd8a 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -495,6 +495,9 @@ void PopupMenu::_draw_items() { has_check = true; } } + if (icon_ofs > 0.0) { + icon_ofs += hseparation; + } float check_ofs = 0.0; if (has_check) {