Fix warning

This commit is contained in:
Wojtek Figat
2024-10-22 23:37:47 +02:00
parent 3d87c054be
commit dbb6cecafb

View File

@@ -238,14 +238,13 @@ namespace FlaxEngine.GUI
// Padding for text
var textRect = GetClientArea();
float textX = Editor.Instance.Options.Options.Interface.TooltipTextAlignment switch
{
TextAlignment.Near => 15,
TextAlignment.Center => 5,
TextAlignment.Far => -5,
_ => throw new ArgumentOutOfRangeException()
};
textRect.X += textX;
textRect.Width -= 10;