fix: properly space input

This commit is contained in:
Anna 2022-02-11 01:35:39 -05:00
parent b170c8fb0d
commit 01373d3899
1 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,8 @@ internal sealed class ChatLog : IUiComponent {
var lineHeight = ImGui.CalcTextSize("A").Y;
return ImGui.GetContentRegionAvail().Y
- lineHeight * 2
- ImGui.GetStyle().ItemSpacing.Y * 2.5f;
- ImGui.GetStyle().ItemSpacing.Y
- ImGui.GetStyle().FramePadding.Y * 2;
}
private unsafe ImGuiViewport* _lastViewport;