Skip to content

Commit

Permalink
Enforce centre-left anchor/origin on placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 12, 2023
1 parent fe0b532 commit d5c2e65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osu.Framework/Graphics/UserInterface/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ protected TextBox()
Position = new Vector2(LeftRightPadding, 0),
Children = new Drawable[]
{
Placeholder = CreatePlaceholder(),
Placeholder = CreatePlaceholder().With(p =>
{
p.Anchor = Anchor.CentreLeft;
p.Origin = Anchor.CentreLeft;
}),
caret = CreateCaret().With(c =>
{
c.Anchor = Anchor.CentreLeft;
Expand Down

0 comments on commit d5c2e65

Please sign in to comment.