From ba5bfa503ae81ea28bb630b6a26d241dacec4cfa Mon Sep 17 00:00:00 2001 From: giangle Date: Wed, 15 Apr 2020 11:12:36 +0700 Subject: [PATCH] Fix calculate new line --- Pod/Classes/HorizontalFloatingHeaderLayout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pod/Classes/HorizontalFloatingHeaderLayout.swift b/Pod/Classes/HorizontalFloatingHeaderLayout.swift index a3ee9d5..05876ae 100644 --- a/Pod/Classes/HorizontalFloatingHeaderLayout.swift +++ b/Pod/Classes/HorizontalFloatingHeaderLayout.swift @@ -94,7 +94,7 @@ public class HorizontalFloatingHeaderLayout: UICollectionViewLayout { // let size = itemSize(for: indexPath) - let newMaxY = currentMinY + size.height + let newMaxY = currentMinY let origin:CGPoint if newMaxY > availableHeight(atSection: indexPath.section){ origin = newLineOrigin(size: size)