mirror of
https://github.com/whoswhip/Spectrum.git
synced 2026-12-06 01:28:42 +00:00
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.
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user