Changes to implement grid layout

This commit is contained in:
Gregory John Casamento 2022-10-17 16:45:40 -04:00
parent fa820398d9
commit 627c51ec45
2 changed files with 104 additions and 78 deletions

View file

@ -1670,6 +1670,16 @@ static NSString *placeholderItem = nil;
_indexPathsToItems = RETAIN([NSMapTable strongToStrongObjectsMapTable]);
}
- (void) _updateParentViewFrame
{
NSEnumerator *oe = [_itemsToAttributes objectEnumerator];
NSCollectionViewLayoutAttributes *attrs = nil;
while ((attrs = [oe nextObject]) != nil)
{
}
}
- (void) reloadData
{
if (_allowReload == NO)
@ -1701,6 +1711,7 @@ static NSString *placeholderItem = nil;
{
[self _loadSectionAtIndex: cs];
}
[self _updateParentViewFrame];
[self setPostsFrameChangedNotifications: f]; // reset
_allowReload = YES;
}