minor change
This commit is contained in:
committed by
TrueZhuanjia
parent
1737eae39b
commit
dfde770274
@@ -259,7 +259,6 @@
|
||||
|
||||
- (void)addToParentStack:(UIStackView *)parentStack {
|
||||
[parentStack insertArrangedSubview:self atIndex:parentStack.arrangedSubviews.count];
|
||||
NSLog(@"title: %@, count: %ld", self.sectionTitle, parentStack.arrangedSubviews.count);
|
||||
self.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
[NSLayoutConstraint activateConstraints:@[
|
||||
[self.leadingAnchor constraintEqualToAnchor:parentStack.leadingAnchor constant:0],
|
||||
@@ -317,9 +316,6 @@
|
||||
|
||||
|
||||
- (void)updateViewForFoldState {
|
||||
if([self getSettingsMenuMode] != AllSettings) return;
|
||||
[self setNeedsLayout];
|
||||
[self layoutIfNeeded];
|
||||
[self setupConstraints];
|
||||
if (_expanded) {
|
||||
_rootStackView.hidden = NO;
|
||||
|
||||
@@ -202,15 +202,12 @@ static const CGFloat cellOffsetY = 20;
|
||||
- (CGSize)collectionView:(UICollectionView *)collectionView
|
||||
layout:(UICollectionViewLayout *)collectionViewLayout
|
||||
sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
NSLog(@"return cellsize: %f, %f", self.cellSize.width, self.cellSize.height);
|
||||
return self.cellSize;
|
||||
}
|
||||
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView
|
||||
layout:(UICollectionViewLayout *)collectionViewLayout
|
||||
minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
|
||||
NSLog(@"return iterIterm: %f", self.interItemMinimumSpacing);
|
||||
|
||||
return self.interItemMinimumSpacing;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user