fix: make input respect scale

This commit is contained in:
Anna 2022-02-04 05:05:52 -05:00
parent 1379a1fc7c
commit 6936695814
1 changed files with 7 additions and 1 deletions

View File

@ -98,7 +98,13 @@ internal sealed class PayloadHandler {
.Cast<TextChunk>()
.Select(text => text.Content)
.Aggregate(string.Concat);
ImGui.InputTextMultiline("##chat2-copy", ref text, (uint) text.Length, new Vector2(250, 150), ImGuiInputTextFlags.ReadOnly);
ImGui.InputTextMultiline(
"##chat2-copy",
ref text,
(uint) text.Length,
new Vector2(250, 150) * ImGuiHelpers.GlobalScale,
ImGuiInputTextFlags.ReadOnly
);
ImGui.EndMenu();
}