fix: Icon text input boxes being wider than expected
This commit is contained in:
parent
c69d3bc7f4
commit
027ff793ed
@ -915,7 +915,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);
|
||||
|
@ -911,7 +911,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
auto &currOccurrences = *m_sortedOccurrences;
|
||||
|
||||
ImGui::PushItemWidth(-30_scaled);
|
||||
ImGui::PushItemWidth(-15_scaled);
|
||||
auto prevFilterLength = m_currFilter->length();
|
||||
if (ImGuiExt::InputTextIcon("##filter", ICON_VS_FILTER, *m_currFilter)) {
|
||||
if (prevFilterLength > m_currFilter->length())
|
||||
|
Loading…
Reference in New Issue
Block a user