Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,25 +461,6 @@ public CustomUICollectionViewCompositionalLayout(LayoutSnapInfo snapInfo, Layout
_headerFooterInfo = headerFooterInfo;
}

// UICollectionViewCompositionalLayout can report a content width larger than the viewport
// after a bounds change (e.g. when inside a RefreshView). This causes UIScrollView to
// enable horizontal scrolling on a vertical layout. Clamp the width to the actual bounds. (#34165)
public override CGSize CollectionViewContentSize
{
get
{
var size = base.CollectionViewContentSize;
if (Configuration.ScrollDirection == UICollectionViewScrollDirection.Vertical
&& CollectionView is not null
&& size.Width > CollectionView.Bounds.Width
&& CollectionView.Bounds.Width > 0)
{
return new CGSize(CollectionView.Bounds.Width, size.Height);
}
return size;
}
}

public override void FinalizeCollectionViewUpdates()
{
base.FinalizeCollectionViewUpdates();
Expand Down
Loading