We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
determineScrollingAbility
1 parent 01f4aac commit 5c5f5f8Copy full SHA for 5c5f5f8
Classes/MTZWhatsNewViewController/MTZCollectionView.m
@@ -24,12 +24,7 @@ - (void)setFrame:(CGRect)frame
24
25
- (void)determineScrollingAbility
26
{
27
- if (self.contentSize.height <= self.frame.size.height &&
28
- self.contentSize.width <= self.frame.size.width) {
29
- self.scrollEnabled = NO;
30
- } else {
31
- self.scrollEnabled = YES;
32
- }
+ self.scrollEnabled = self.contentSize.height > self.frame.size.height || self.contentSize.width > self.frame.size.width;
33
}
34
35
@end
0 commit comments