Fix: Input text floating outside chat window

This commit is contained in:
Cory Sanin 2023-03-13 10:54:28 -05:00 committed by GitHub
parent 049164c400
commit c9883e1553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -303,5 +303,5 @@ int32_t ChatStringWrappedGetHeight(u8string_view args, int32_t width)
int32_t numLines;
GfxWrapString(FormatStringID(STR_STRING, args), width, FontStyle::Medium, nullptr, &numLines);
const int32_t lineHeight = FontGetLineHeight(FontStyle::Medium);
return lineHeight * numLines;
return lineHeight * (numLines + 1);
}