diff --git a/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.iOS.cs b/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.iOS.cs index cc3658dd1e98..d8c0f6b6345a 100644 --- a/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.iOS.cs +++ b/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.iOS.cs @@ -168,7 +168,7 @@ public override Size GetDesiredSize(double widthConstraint, double heightConstra // If contentSize does have a value, our target size is the smaller of it and the constraints size.Width = contentSize.Width <= widthConstraint ? contentSize.Width : widthConstraint; - size.Height = contentSize.Height <= heightConstraint ? contentSize.Height: heightConstraint; + size.Height = contentSize.Height <= heightConstraint ? contentSize.Height : heightConstraint; var virtualView = this.VirtualView as IView; diff --git a/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs b/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs index b22be6890476..b0874a6b8903 100644 --- a/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs +++ b/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs @@ -181,7 +181,7 @@ public override void ViewWillLayoutSubviews() LayoutEmptyView(); } - void InvalidateMeasureIfContentSizeChanged() + void InvalidateMeasureIfContentSizeChanged() { var contentSize = CollectionView.CollectionViewLayout.CollectionViewContentSize; @@ -205,7 +205,7 @@ void InvalidateMeasureIfContentSizeChanged() { invalidate = true; } - + if (contentSize.Height < screenHeight || contentSize.Height < screenHeight) { invalidate = true; @@ -220,7 +220,7 @@ void InvalidateMeasureIfContentSizeChanged() _previousContentSize = contentSize; } - internal Size? GetSize() + internal Size? GetSize() { if (_emptyViewDisplayed) { diff --git a/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewSizingTestCase.cs b/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewSizingTestCase.cs index 81c35124671c..d85c02d4028a 100644 --- a/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewSizingTestCase.cs +++ b/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewSizingTestCase.cs @@ -1,6 +1,6 @@ using System; -using Microsoft.Maui.Controls; using System.Collections.Generic; +using Microsoft.Maui.Controls; using Xunit.Abstractions; namespace Microsoft.Maui.DeviceTests diff --git a/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.cs b/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.cs index a448d685d8a8..e0f5e210f129 100644 --- a/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.cs +++ b/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.cs @@ -1,16 +1,16 @@ using System; using System.Collections; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.Reflection; using System.Threading.Tasks; using Microsoft.Maui.Controls; using Microsoft.Maui.Controls.Handlers.Items; using Microsoft.Maui.DeviceTests.Stubs; +using Microsoft.Maui.Graphics; using Microsoft.Maui.Handlers; using Microsoft.Maui.Hosting; using Xunit; -using System.Collections.Generic; -using Microsoft.Maui.Graphics; using Xunit.Abstractions; namespace Microsoft.Maui.DeviceTests @@ -135,7 +135,7 @@ public async Task CollectionViewCanSizeToContent(CollectionViewSizingTestCase te for (int n = 0; n < itemCounts.Length; n++) { int itemsCount = itemCounts[n]; - + GenerateItems(itemsCount, data); collectionView.ItemsSource = data; @@ -149,7 +149,7 @@ public async Task CollectionViewCanSizeToContent(CollectionViewSizingTestCase te double expectedHeight = layoutOptions == LayoutOptions.Fill ? containerHeight : Math.Min(itemsCount * templateHeight, containerHeight); - + if (itemsLayout.Orientation == ItemsLayoutOrientation.Horizontal) { Assert.Equal(expectedWidth, collectionView.Width, tolerance);