diff --git a/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs b/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs index a5665d054e9d..537f69ce4358 100644 --- a/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs +++ b/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs @@ -108,13 +108,15 @@ internal virtual bool UpdateConstraints(CGSize size) { if (size.IsCloseTo(_currentSize)) { + // Need to update the constraints when dynamically adding items of different sizes + ConstrainTo(_currentSize); return false; } ClearCellSizeCache(); EstimatedItemSize = CGSize.Empty; - + _currentSize = size; var newSize = new CGSize(Math.Floor(size.Width), Math.Floor(size.Height)); diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/ShouldCollectionViewEachItemsAppearWithoutDots.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/ShouldCollectionViewEachItemsAppearWithoutDots.png new file mode 100644 index 000000000000..94b361780999 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/ShouldCollectionViewEachItemsAppearWithoutDots.png differ diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue26936.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue26936.xaml new file mode 100644 index 000000000000..e14503cec9c9 --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue26936.xaml @@ -0,0 +1,18 @@ + + + +