Fix textbox height
Fix build error under non-windows platforms
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user