By default, cell nodes in table view should fill its width. So the min constrained width is updated to enforce this behaviour.

This commit is contained in:
Huy Nguyen
2015-08-21 17:43:40 +03:00
parent 60cf43766b
commit 641929c4e5
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -791,7 +791,8 @@ void ASPerformBlockWithoutAnimation(BOOL withoutAnimation, void (^block)()) {
}
// Default size range
return ASSizeRangeMake(CGSizeZero, CGSizeMake(_maxWidthForNodesConstrainedSize, FLT_MAX));
return ASSizeRangeMake(CGSizeMake(_maxWidthForNodesConstrainedSize, 0),
CGSizeMake(_maxWidthForNodesConstrainedSize, FLT_MAX));
}
- (void)dataControllerLockDataSource
+1
View File
@@ -136,6 +136,7 @@ static const CGFloat kInnerPadding = 10.0f;
{
_imageNode.preferredFrameSize = _isImageEnlarged ? CGSizeMake(2.0 * kImageSize, 2.0 * kImageSize) : CGSizeMake(kImageSize, kImageSize);
_textNode.flexShrink = YES;
_textNode.flexGrow = YES;
return
[ASInsetLayoutSpec