If we check for batching before content size is available we'll always fetch (#1355)

This commit is contained in:
Garrett Moon 2019-03-03 17:33:32 -08:00 committed by Adlai Holler
parent d14a3b03e9
commit 001765a85e

View File

@ -1685,7 +1685,8 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
{
if (_leadingScreensForBatching != leadingScreensForBatching) {
_leadingScreensForBatching = leadingScreensForBatching;
ASPerformBlockOnMainThread(^{
// Push this to the next runloop to be sure the scroll view has the right content size
dispatch_async(dispatch_get_main_queue(), ^{
[self _checkForBatchFetching];
});
}