From 0c0256e190a2fe232429c001bc996aa59bfed257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sun, 7 Aug 2022 22:21:02 +0200 Subject: [PATCH] TextLabel: Vertically centered TextLabels take the 'AutoResize' property into account correctly. [GB.GUI.BASE] * BUG: TextLabel: Vertically centered TextLabels take the 'AutoResize' property into account correctly. --- comp/src/gb.gui.base/.src/Label.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/src/gb.gui.base/.src/Label.class b/comp/src/gb.gui.base/.src/Label.class index d305352d2..c3cbf92a9 100644 --- a/comp/src/gb.gui.base/.src/Label.class +++ b/comp/src/gb.gui.base/.src/Label.class @@ -145,7 +145,7 @@ Public Sub _UpdateSize() 'Debug Me.Name; ": "; Me.Font.ToString();; W - If Align.IsMiddle($iAlign) Then + If Align.IsMiddle($iAlign) And If Not $bRichText Then If H < Me.H Then H = Me.H Endif