diff --git a/osu.Framework.Tests/Visual/UserInterface/TestSceneTextBox.cs b/osu.Framework.Tests/Visual/UserInterface/TestSceneTextBox.cs index f012f96ca6..4eb7c5ba5d 100644 --- a/osu.Framework.Tests/Visual/UserInterface/TestSceneTextBox.cs +++ b/osu.Framework.Tests/Visual/UserInterface/TestSceneTextBox.cs @@ -923,16 +923,19 @@ private partial class BorderCaret : Caret public BorderCaret() { - RelativeSizeAxes = Axes.Y; - - Masking = true; - BorderColour = Color4.White; - BorderThickness = 3; - - InternalChild = new Box + InternalChild = new Container { + Anchor = Anchor.CentreLeft, + Origin = Anchor.CentreLeft, RelativeSizeAxes = Axes.Both, - Colour = Color4.Transparent + Masking = true, + BorderColour = Colour4.White, + BorderThickness = 3f, + Child = new Box + { + RelativeSizeAxes = Axes.Both, + Colour = Colour4.Transparent, + }, }; }