From c571f5a1e75d22f85d837537343471a2244514ec Mon Sep 17 00:00:00 2001 From: Andreas Maerten <24669514+Yimura@users.noreply.github.com> Date: Thu, 6 Jul 2023 07:46:42 +0200 Subject: [PATCH] fix(CmdExecutor): Set sizing of input w/ frame padding (#1618) --- src/views/core/view_cmd_executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/core/view_cmd_executor.cpp b/src/views/core/view_cmd_executor.cpp index fb2230ad..234ea27c 100644 --- a/src/views/core/view_cmd_executor.cpp +++ b/src/views/core/view_cmd_executor.cpp @@ -27,7 +27,7 @@ namespace big // set focus by default on input box ImGui::SetKeyboardFocusHere(0); - ImGui::SetNextItemWidth(screen_x * 0.5f); + ImGui::SetNextItemWidth((screen_x * 0.5f) - 30.f); components::input_text_with_hint("", "CMD_EXECUTOR_TYPE_CMD"_T, command_buffer, sizeof(command_buffer), ImGuiInputTextFlags_EnterReturnsTrue, [] { if (command::process(command_buffer, std::make_shared(), true)) {