diff --git a/AsyncDisplayKit/ASPagerFlowLayout.m b/AsyncDisplayKit/ASPagerFlowLayout.m index 76e69208..dcb89a40 100644 --- a/AsyncDisplayKit/ASPagerFlowLayout.m +++ b/AsyncDisplayKit/ASPagerFlowLayout.m @@ -57,7 +57,7 @@ - (BOOL)_dataSourceIsEmpty { - return ([self.collectionView numberOfSections] > 0 && [self.collectionView numberOfItemsInSection:0] > 0); + return ([self.collectionView numberOfSections] == 0 || [self.collectionView numberOfItemsInSection:0] == 0); } - (CGRect)_visibleRect