From 7c8321df024e763ecdc65f30510cae92c709838d Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Fri, 21 Feb 2025 16:22:33 +0100 Subject: [PATCH] CollectionView 1's footer doesn't resize when changing visibility - fix --- .../Core/Handlers/Items/iOS/StructuredItemsViewController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs b/src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs index 784df8e5cd3b..04acf91677c3 100644 --- a/src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs +++ b/src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs @@ -213,7 +213,10 @@ void UpdateHeaderFooterPosition() if (CollectionView.ContentSize.Height + headerHeight <= CollectionView.Bounds.Height) yOffset = -headerHeight; - CollectionView.ContentOffset = new CoreGraphics.CGPoint(CollectionView.ContentOffset.X, yOffset); + if (currentOffset.Y.Value < headerHeight) + { + CollectionView.ContentOffset = new CoreGraphics.CGPoint(CollectionView.ContentOffset.X, yOffset); + } } if (_headerUIView != null && _headerUIView.Frame.Y != headerHeight)