Improve Our Handling of Flow Layout Headers/Footers (#2939)

* Rejigger our flow layout supplementary support to make more sense.

* Support old protocol

* Update

* Update deprecation message

* Undeprecate insetForSection method, because it actually _does_ still work

* Update the tests

* Remove irrelevant junk

* Remove cast, add pragma
This commit is contained in:
Adlai Holler
2017-01-27 15:58:43 -08:00
committed by GitHub
parent 7d68ce33bb
commit 295ed22c23
13 changed files with 156 additions and 108 deletions

View File

@@ -39,10 +39,6 @@ static CGFloat kFixedHeight = 200.0f;
#pragma mark -
#pragma mark ASCellNode.
+ (CGFloat)desiredHeightForWidth:(CGFloat)width {
return kFixedHeight;
}
- (instancetype)init
{
if (!(self = [super init]))
@@ -61,10 +57,6 @@ static CGFloat kFixedHeight = 200.0f;
return self;
}
- (void)layout {
[super layout];
}
- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize
{
ASCenterLayoutSpec *centerSpec = [[ASCenterLayoutSpec alloc] init];