From 51744ca9c7ea3958ab688f15bbe43af32c5bd811 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Wed, 16 Jul 2025 23:00:42 -0400 Subject: [PATCH] fix(renderer): improve child window layout in logs Updated the `ImGui.BeginChild` call to include the `ImGuiChildFlags.AlwaysUseWindowPadding` flag for better layout behavior. Removed unnecessary indentation operations for log entries, streamlining the rendering process. --- Spectrum/Renderer.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Spectrum/Renderer.cs b/Spectrum/Renderer.cs index d4c08ea..cbd19a3 100644 --- a/Spectrum/Renderer.cs +++ b/Spectrum/Renderer.cs @@ -311,18 +311,14 @@ namespace Spectrum } ImGui.SeparatorText("Logs"); - ImGui.BeginChild("Logs", new Vector2(0, -34)); - ImGui.Dummy(new Vector2(0, 4)); + ImGui.BeginChild("Logs", new Vector2(0, -34), ImGuiChildFlags.AlwaysUseWindowPadding); var _LogEntries = LogManager.LogEntries.ToList(); foreach (var log in _LogEntries) { - ImGui.Indent(8); ImGui.Text(log.ToString()); - ImGui.Unindent(8); } - ImGui.Dummy(new Vector2(0, 4)); ImGui.EndChild(); ImGui.Dummy(new Vector2(0, 1));