From 09589659f4f263b9c2da9c99b9dedf46ba49222d Mon Sep 17 00:00:00 2001 From: Salman Ahmed Date: Tue, 12 Dec 2023 21:05:34 +0300 Subject: [PATCH] Fix automatic textbox font size broken by layout changes --- osu.Framework/Graphics/UserInterface/TextBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Framework/Graphics/UserInterface/TextBox.cs b/osu.Framework/Graphics/UserInterface/TextBox.cs index fa3f0ead8a..4f92c9612c 100644 --- a/osu.Framework/Graphics/UserInterface/TextBox.cs +++ b/osu.Framework/Graphics/UserInterface/TextBox.cs @@ -781,7 +781,7 @@ protected virtual Drawable AddCharacterToFlow(char c) /// public float FontSize { - get => customFontSize ?? TextFlow.DrawSize.Y - (TextFlow.Padding.Top + TextFlow.Padding.Bottom); + get => customFontSize ?? TextContainer.DrawSize.Y; init => customFontSize = value; }