Skip to content

Commit 2b44413

Browse files
authored
CollectionView 1's footer doesn't resize when changing visibility - fix (#27963)
1 parent baa9fe6 commit 2b44413

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ void UpdateHeaderFooterPosition()
213213
if (CollectionView.ContentSize.Height + headerHeight <= CollectionView.Bounds.Height)
214214
yOffset = -headerHeight;
215215

216-
CollectionView.ContentOffset = new CoreGraphics.CGPoint(CollectionView.ContentOffset.X, yOffset);
216+
if (currentOffset.Y.Value < headerHeight)
217+
{
218+
CollectionView.ContentOffset = new CoreGraphics.CGPoint(CollectionView.ContentOffset.X, yOffset);
219+
}
217220
}
218221

219222
if (_headerUIView != null && _headerUIView.Frame.Y != headerHeight)

0 commit comments

Comments
 (0)