mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:30:38 +00:00
Changes to implement grid layout
This commit is contained in:
parent
fa820398d9
commit
627c51ec45
2 changed files with 104 additions and 78 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue