From dc52938627fb2cf82eb8db366aa2671f3142d963 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 3 Apr 2015 14:22:00 +0100 Subject: [PATCH] InputInt2(), InputInt3(), InputInt4(): fixed label vertical alignment --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index fb11ef48..a50562a4 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6577,6 +6577,7 @@ static bool InputIntN(const char* label, int* v, int components) ImGui::PopItemWidth(); ImGui::PopID(); + window->DC.CurrentLineTextBaseOffset = ImMax(window->DC.CurrentLineTextBaseOffset, style.FramePadding.y); ImGui::TextUnformatted(label, FindTextDisplayEnd(label)); ImGui::EndGroup();