From 429223c7e331a35e159fd02e7316e602a8bd7ed3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 30 Jul 2021 15:58:06 +0200 Subject: [PATCH] Fix Label text positioning when using Auto Fit --- Source/Engine/UI/GUI/Common/Label.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index ba5763f31..e5ba9aacc 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -220,8 +220,6 @@ namespace FlaxEngine.GUI var wAlignment = VerticalAlignment; if (_autoFitText) { - hAlignment = TextAlignment.Center; - wAlignment = TextAlignment.Center; if (!_textSize.IsZero) { scale = (rect.Size / _textSize).MinValue;