fix: properly space input

This commit is contained in:
Anna 2022-02-11 01:35:39 -05:00
parent 00cf5f23d1
commit b98664edd4
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

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;