From 8f304d022b4161ce9a417641ecc419be72c0c72a Mon Sep 17 00:00:00 2001 From: dbriard Date: Mon, 7 Oct 2024 15:33:54 +0200 Subject: [PATCH] fixed missing orientation on target --- .../Properties/launchSettings.json | 12 ++++++++++++ .../VirtualizingStackPanelTests.cs | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 samples/SingleProjectSandbox/Properties/launchSettings.json diff --git a/samples/SingleProjectSandbox/Properties/launchSettings.json b/samples/SingleProjectSandbox/Properties/launchSettings.json new file mode 100644 index 0000000000..c4e26a6f54 --- /dev/null +++ b/samples/SingleProjectSandbox/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "SingleProjectSandbox": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:58713;http://localhost:58714" + } + } +} \ No newline at end of file diff --git a/tests/Avalonia.Controls.UnitTests/VirtualizingStackPanelTests.cs b/tests/Avalonia.Controls.UnitTests/VirtualizingStackPanelTests.cs index 5b100d880e..3bf632039d 100644 --- a/tests/Avalonia.Controls.UnitTests/VirtualizingStackPanelTests.cs +++ b/tests/Avalonia.Controls.UnitTests/VirtualizingStackPanelTests.cs @@ -1438,7 +1438,10 @@ namespace Avalonia.Controls.UnitTests Orientation orientation = Orientation.Vertical) where T : ItemsControl, new() { - var target = new VirtualizingStackPanel(); + var target = new VirtualizingStackPanel + { + Orientation = orientation, + }; items ??= new ObservableCollection(Enumerable.Range(0, 100).Select(x => $"Item {x}"));