From 04a206f72898bbaf1b4df7e37db77697645460d3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 14 Nov 2021 19:56:52 +0100 Subject: [PATCH] updated TestComplexPanel test to match the new scroll bar behavior --- Tests/UiTests.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Tests/UiTests.cs b/Tests/UiTests.cs index ef70dad..8be6774 100644 --- a/Tests/UiTests.cs +++ b/Tests/UiTests.cs @@ -43,7 +43,7 @@ namespace Tests { public void TestComplexPanel() { var group = new Group(Anchor.TopLeft, Vector2.One, false); var panel = group.AddChild(new Panel(Anchor.Center, new Vector2(150, 150), Vector2.Zero, false, true, false) { - ChildPadding = new Padding(5, 10, 5, 5) + ChildPadding = new Padding(5, 5, 5, 5) }); for (var i = 0; i < 5; i++) { var button = panel.AddChild(new Button(Anchor.AutoLeft, new Vector2(1)) { @@ -66,10 +66,11 @@ namespace Tests { Assert.AreEqual(11, panel.GetChildren(regardGrandchildren: true).Count()); var testBtn = panel.GetChildren