From 0c21a5f3b48be3de0aff8ca125d239b9743ac6f4 Mon Sep 17 00:00:00 2001 From: Antonio Abbatangelo Date: Sat, 24 Feb 2024 13:57:07 -0500 Subject: [PATCH] ui: Fix FilePicker clear button overlapping select button --- ui/xui/widgets.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/xui/widgets.cc b/ui/xui/widgets.cc index 34a122ce6c..67430ecda8 100644 --- a/ui/xui/widgets.cc +++ b/ui/xui/widgets.cc @@ -312,7 +312,8 @@ bool FilePicker(const char *str_id, const char **buf, const char *filters, GetWidgetTitleDescriptionHeight(str_id, desc)); ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0, 0)); ImGui::PushID(str_id); - bool status = ImGui::Button("###file_button", bb); + bool status = + ImGui::ButtonEx("###file_button", bb, ImGuiButtonFlags_AllowOverlap); ImGui::SetItemAllowOverlap(); if (status) { int flags = NOC_FILE_DIALOG_OPEN;