minor change

This commit is contained in:
TrueZhuangjia
2025-06-15 23:26:22 +08:00
committed by TrueZhuanjia
parent 1737eae39b
commit dfde770274
2 changed files with 0 additions and 7 deletions
-4
View File
@@ -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;
}