From f186f0ca117e8b5dea4e61a8f25885ca42180343 Mon Sep 17 00:00:00 2001 From: 54108 <3318195572@qq.com> Date: Mon, 16 Sep 2024 17:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=86=E5=89=B2=E5=99=A8?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=A4=A7=E5=B0=8F=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 90ca087..ac8ff67 100644 --- a/main.cpp +++ b/main.cpp @@ -559,7 +559,7 @@ int main(int, char **) ImGui::BeginGroup(); // 分割器 - ImGui::InvisibleButton("splitter_vertical", ImVec2(1.0f, -1.0f)); + ImGui::InvisibleButton("splitter_vertical", ImVec2(4.0f, -1.0f)); if (ImGui::IsItemHovered()) { ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeEW); // 更改鼠标光标 @@ -590,11 +590,10 @@ int main(int, char **) // Do stuff on Selectable() double click. selected_right = i; ImGui::SetClipboardText(items_right[i].c_str()); - selected_right = -1; } + selected_right = -1; } ImGui::EndChild(); - // 添加一个输入框 // 分割器 ImGui::InvisibleButton("splitter_horizontal", ImVec2(-1.0f, 4.0f));