ui: Fix FilePicker clear button overlapping select button

This commit is contained in:
Antonio Abbatangelo
2024-03-09 22:32:13 -07:00
committed by mborgerson
parent a1e9c4af2e
commit 0c21a5f3b4
+2 -1
View File
@@ -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;