From 096c5edbd44093f69a00e91b06625c1a29492f65 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Wed, 10 Feb 2021 22:47:13 +0100 Subject: [PATCH] Fixed file select length --- core/src/gui/widgets/file_select.cpp | 1 + core/src/gui/widgets/folder_select.cpp | 1 + 2 files changed, 2 insertions(+) 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);