             return
         }
 
+        currentSize = collectionView?.bounds.size ?? CGSize.zero
         let staticMasks = calculatedMasks(itemSize: max(itemSize, 0))
-
         var position: CGFloat = 0
 
         for item in 0..<numberOfItems {


    /// :nodoc:
    override open func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool {
        invalidateCache()
        return true
    }

        cachedAttributes = [CollectionViewSlantedLayoutAttributes]()
        cachedContentSize = 0
    }

}

// MARK: CollectionViewLayout methods overriding
