From 5f2c07f2d866b83d9f74a043595f62894e25fe6a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 23 Dec 2024 21:48:47 +0100 Subject: [PATCH] fix: Icon text inputs not being the same length as other items --- lib/libimhex/source/ui/imgui_imhex_extensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/source/ui/imgui_imhex_extensions.cpp b/lib/libimhex/source/ui/imgui_imhex_extensions.cpp index 599853716..82d1557c6 100644 --- a/lib/libimhex/source/ui/imgui_imhex_extensions.cpp +++ b/lib/libimhex/source/ui/imgui_imhex_extensions.cpp @@ -981,7 +981,7 @@ namespace ImGuiExt { SetCursorPosX(GetCursorPosX() + frame_size.x); - bool value_changed = InputTextEx(label, nullptr, buffer.data(), buffer.size() + 1, ImVec2(CalcItemWidth(), label_size.y + style.FramePadding.y * 2.0F), ImGuiInputTextFlags_CallbackResize | flags, UpdateStringSizeCallback, &buffer); + bool value_changed = InputTextEx(label, nullptr, buffer.data(), buffer.size() + 1, ImVec2(CalcItemWidth() - icon_frame_size.x, label_size.y + style.FramePadding.y * 2.0F), ImGuiInputTextFlags_CallbackResize | flags, UpdateStringSizeCallback, &buffer); if (value_changed) MarkItemEdited(GImGui->LastItemData.ID);