From 160dfa5dc7a0bd24a325e95c607ea9e079f2ee91 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 20 Mar 2021 18:49:31 +0100 Subject: [PATCH] Fix Label text alignment in auto size text #308 --- Source/Engine/UI/GUI/Common/Label.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index 7ef433eca..d549a9d85 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -200,8 +200,8 @@ namespace FlaxEngine.GUI color *= 0.6f; var scale = 1.0f; - var hAlignment = _autoWidth ? TextAlignment.Near : HorizontalAlignment; - var wAlignment = _autoHeight ? TextAlignment.Near : VerticalAlignment; + var hAlignment = HorizontalAlignment; + var wAlignment = VerticalAlignment; if (_autoFitText) { hAlignment = TextAlignment.Center;