Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 06b9528

Browse files
authored
Revert "[iOS] Change how ItemsViewController.CheckEmptySource checks for item size" (#15476)
* Revert "[iOS] Change how ItemsViewController.CheckEmptySource checks for item size (#15289)" This reverts commit d22e7d3. * Delete Issue15287.xaml.cs
1 parent 04ace58 commit 06b9528

File tree

4 files changed

+1
-91
lines changed

4 files changed

+1
-91
lines changed

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue15287.xaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue15287.xaml.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,9 +1868,6 @@
18681868
<DependentUpon>MyCollectionView.xaml</DependentUpon>
18691869
<SubType>Code</SubType>
18701870
</Compile>
1871-
<Compile Include="$(MSBuildThisFileDirectory)Issue15287.xaml.cs">
1872-
<DependentUpon>Issue15287.xaml</DependentUpon>
1873-
</Compile>
18741871
<Compile Include="$(MSBuildThisFileDirectory)Issue15100.xaml.cs">
18751872
<DependentUpon>Issue15100.xaml</DependentUpon>
18761873
</Compile>
@@ -2426,9 +2423,6 @@
24262423
<SubType>Designer</SubType>
24272424
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
24282425
</EmbeddedResource>
2429-
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue15287.xaml">
2430-
<SubType>Designer</SubType>
2431-
</EmbeddedResource>
24322426
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue15100.xaml">
24332427
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
24342428
</EmbeddedResource>

Xamarin.Forms.Platform.iOS/CollectionView/ItemsViewController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void CheckForEmptySource()
128128
// If we're going from empty to having stuff, it's possible that we've never actually measured
129129
// a prototype cell and our itemSize or estimatedItemSize are wrong/unset
130130
// So trigger a constraint update; if we need a measurement, that will make it happen
131-
ConstrainToItemsView();
131+
ItemsViewLayout.ConstrainTo(CollectionView.Bounds.Size);
132132
}
133133
}
134134

0 commit comments

Comments
 (0)