We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f91a2 commit 06ab709Copy full SHA for 06ab709
src/Avalonia.Controls/VirtualizingStackPanel.cs
@@ -2,7 +2,6 @@
2
using System.Collections.Generic;
3
using System.Collections.Specialized;
4
using System.Diagnostics;
5
-using System.Drawing;
6
using System.Linq;
7
using Avalonia.Controls.Primitives;
8
using Avalonia.Controls.Utils;
@@ -164,6 +163,9 @@ protected override Size MeasureOverride(Size availableSize)
164
163
_realizedElements ??= new();
165
_measureElements ??= new();
166
+ // We need to set the lastEstimatedElementSizeU before calling CalculateDesiredSize()
167
+ _ = EstimateElementSizeU();
168
+
169
// We handle horizontal and vertical layouts here so X and Y are abstracted to:
170
// - Horizontal layouts: U = horizontal, V = vertical
171
// - Vertical layouts: U = vertical, V = horizontal
0 commit comments