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; }