 
     /// :nodoc:
     override open func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool {
+        guard newBounds.size != currentSize else {
+            return false
+        }
         invalidateCache()
         return true
     }

            return
        }

        let staticMasks = calculatedMasks(itemSize: max(itemSize, 0))

        var position: CGFloat = 0

        for item in 0..<numberOfItems {

        cachedAttributes = [CollectionViewSlantedLayoutAttributes]()
        cachedContentSize = 0
    }

}

// MARK: CollectionViewLayout methods overriding
