mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 03:29:43 +00:00
ui: Fix FilePicker clear button overlapping select button
This commit is contained in:
parent
a1e9c4af2e
commit
0c21a5f3b4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user