3
This commit is contained in:
@@ -78,7 +78,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
|
||||
}];
|
||||
|
||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(self.topBar.mas_bottom).offset(12);
|
||||
make.top.equalTo(self.topBar.mas_bottom).offset(0);
|
||||
make.left.right.bottom.equalTo(self.view);
|
||||
}];
|
||||
|
||||
@@ -310,7 +310,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
|
||||
if (section == KBSearchSectionHistory) {
|
||||
return UIEdgeInsetsMake(8, 16, 12, 16);
|
||||
}
|
||||
return UIEdgeInsetsMake(8, 16, 20, 16);
|
||||
return UIEdgeInsetsMake(8, 16, 16, 16);
|
||||
}
|
||||
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
|
||||
@@ -326,7 +326,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
|
||||
if (section == KBSearchSectionHistory) {
|
||||
return self.historyWords.count == 0 ? CGSizeZero : CGSizeMake(collectionView.bounds.size.width, 40);
|
||||
}
|
||||
return CGSizeMake(collectionView.bounds.size.width, 40);
|
||||
return CGSizeMake(collectionView.bounds.size.width, 24);
|
||||
}
|
||||
|
||||
#pragma mark - UICollectionViewDelegate
|
||||
|
||||
Reference in New Issue
Block a user