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)