Skip to content

Commit

Permalink
ui: Fix FilePicker clear button overlapping select button
Browse files Browse the repository at this point in the history
  • Loading branch information
antangelo authored and mborgerson committed Mar 10, 2024
1 parent a1e9c4a commit 0c21a5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/xui/widgets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c21a5f

Please sign in to comment.