Skip to content

Commit

Permalink
Fix automatic textbox font size broken by layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 12, 2023
1 parent bb9f45e commit 0958965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Graphics/UserInterface/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ protected virtual Drawable AddCharacterToFlow(char c)
/// </summary>
public float FontSize
{
get => customFontSize ?? TextFlow.DrawSize.Y - (TextFlow.Padding.Top + TextFlow.Padding.Bottom);
get => customFontSize ?? TextContainer.DrawSize.Y;
init => customFontSize = value;
}

Expand Down

0 comments on commit 0958965

Please sign in to comment.