Fixed file select length

This commit is contained in:
Ryzerth 2021-02-10 22:47:13 +01:00
parent 3541b8a0dd
commit 096c5edbd4
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);