Fix textbox height

Fix build error under non-windows platforms
This commit is contained in:
ExMatics HydrogenC
2023-12-01 19:38:15 +08:00
parent 7b63c7016c
commit 95f5e31e48
8 changed files with 85 additions and 13 deletions

View File

@@ -38,8 +38,9 @@ namespace FlaxEditor.GUI
{
Depth = -1;
if (Height < Style.Current.FontMedium.Height)
Height = Style.Current.FontMedium.Height + 4;
var mediumHeight = FallbackTextUtils.GetMaxHeight(Style.Current.FontMedium);
if (Height < mediumHeight)
Height = mediumHeight + 4;
}
/// <inheritdoc />