Skip to content

Commit b671840

Browse files
committed
InputTex(): Comment (#512)
1 parent b1ec90d commit b671840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7575,7 +7575,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
75757575
RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding);
75767576

75777577
// Render
7578-
const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + size.x, frame_bb.Min.y + size.y);
7578+
const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + size.x, frame_bb.Min.y + size.y); // Not using frame_bb.Max because we have adjusted size
75797579
ImVec2 render_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding;
75807580
ImVec2 text_size(0.f, 0.f);
75817581
if (g.ActiveId == id || (edit_state.Id == id && is_multiline && g.ActiveId == draw_window->GetID("#SCROLLY")))

0 commit comments

Comments
 (0)