|
|
|
@ -5653,10 +5653,9 @@ void ImGui::AlignFirstTextHeightToWidgets()
|
|
|
|
|
if (window->SkipItems)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
// Declare a dummy item size to that upcoming items that are smaller will center-align on the newly expanded line height.
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
ItemSize(ImVec2(0, g.FontSize + g.Style.FramePadding.y*2), g.Style.FramePadding.y);
|
|
|
|
|
SameLine(0, 0);
|
|
|
|
|
window->DC.CurrentLineHeight = ImMax(window->DC.CurrentLineHeight, g.FontSize + g.Style.FramePadding.y * 2);
|
|
|
|
|
window->DC.CurrentLineTextBaseOffset = ImMax(window->DC.CurrentLineTextBaseOffset, g.Style.FramePadding.y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Add a label+text combo aligned to other label+value widgets
|
|
|
|
|