1
This commit is contained in:
@@ -71,7 +71,8 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
|
||||
[self.searchBarView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.equalTo(self.backButton);
|
||||
make.left.equalTo(self.backButton.mas_right).offset(12);
|
||||
make.width.mas_equalTo(315);
|
||||
// make.width.mas_equalTo(315);
|
||||
make.right.equalTo(self.view).offset(-16);
|
||||
make.height.mas_equalTo(36);
|
||||
make.right.lessThanOrEqualTo(self.topBar).offset(-16);
|
||||
}];
|
||||
@@ -301,8 +302,8 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
|
||||
CGFloat spacing = 12; // 列间距
|
||||
CGFloat w = floor((width - inset*2 - spacing) / 2.0);
|
||||
// 高度:封面 0.75w + 标题 + 价格 + 边距,近似定高
|
||||
CGFloat h = w*0.75 + 8 + 20 + 10 + 6 + 8; // 估算
|
||||
return CGSizeMake(w, h);
|
||||
// CGFloat h = w*0.75 + 8 + 20 + 10 + 6 + 8; // 估算
|
||||
return CGSizeMake(w, KBFit(197));
|
||||
}
|
||||
|
||||
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
|
||||
|
||||
Reference in New Issue
Block a user