diff --git a/core/src/gui/widgets/file_select.cpp b/core/src/gui/widgets/file_select.cpp index ae6a2051..d976458d 100644 --- a/core/src/gui/widgets/file_select.cpp +++ b/core/src/gui/widgets/file_select.cpp @@ -44,6 +44,7 @@ bool FileSelect::render(std::string id) { if (!lastPathValid) { ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f)); } + ImGui::SetNextItemWidth(menuColumnWidth); if (ImGui::InputText(id.c_str(), strPath, 2047)) { path = std::string(strPath); std::string expandedPath = expandString(strPath); diff --git a/core/src/gui/widgets/folder_select.cpp b/core/src/gui/widgets/folder_select.cpp index 99ae4ea1..0a7c9189 100644 --- a/core/src/gui/widgets/folder_select.cpp +++ b/core/src/gui/widgets/folder_select.cpp @@ -42,6 +42,7 @@ bool FolderSelect::render(std::string id) { if (!lastPathValid) { ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f)); } + ImGui::SetNextItemWidth(menuColumnWidth); if (ImGui::InputText(id.c_str(), strPath, 2047)) { path = std::string(strPath); std::string expandedPath = expandString(strPath);