Minor updates and formatting change

This commit is contained in:
Gregory John Casamento 2022-07-16 07:56:13 -04:00
parent 466ebedd04
commit b28eaac9eb
2 changed files with 9 additions and 14 deletions

View file

@ -425,24 +425,19 @@
mis = [self minimumInteritemSpacing];
}
// Do calculations...
// Calculations...
h = sz.height;
w = sz.width;
x = (r * w) + si.left + mis;
y = (s * h) + si.top + mls;
f = NSMakeRect(x, y, h, w);
// NSLog(@"Flow layout for index path = %@", indexPath);
// Build attrs object...
[attrs setFrame: f];
[attrs setHidden: NO];
[attrs setZIndex: 0];
[attrs setSize: sz];
// NSLog(@"f = %@", NSStringFromRect(f));
// NSLog(@"s = %@", NSStringFromSize(sz));
// NSLog(@"self = %@", self);
AUTORELEASE(attrs);
return attrs;
@ -450,7 +445,7 @@
- (NSCollectionViewLayoutAttributes *)
layoutAttributesForSupplementaryViewOfKind: (NSCollectionViewSupplementaryElementKind)elementKind
atIndexPath: (NSIndexPath *)indexPath
atIndexPath: (NSIndexPath *)indexPath
{
return nil;
}