Skip to content

Commit 1f73e7b

Browse files
committed
added scrollIndicatorInsets
1 parent 34ef6a9 commit 1f73e7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ARMRef/ARMRef/Source/CollectionView/ACollectionView.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ - (instancetype) init {
3333
if (self = [super initWithFrame:CGRectZero collectionViewLayout:ACollectionView._layout]) {
3434
self.backgroundColor = [UIColor colorFromHex:0x333e48];
3535
self.contentInset = UIEdgeInsetsMake(10.0f, 0.0f, 10.0f, 0.0f);
36+
self.scrollIndicatorInsets = self.contentInset;
3637
self.alwaysBounceVertical = YES;
3738
self.translatesAutoresizingMaskIntoConstraints = NO;
3839

@@ -63,6 +64,7 @@ - (void) _keyboardWillChangeFrameNotification:(NSNotification *)notification {
6364

6465
CGFloat bottomInset = (endKeyboardFrame.origin.y > self.bounds.size.height ? 10.0f : endKeyboardFrame.size.height + 10.0f);
6566
self.contentInset = UIEdgeInsetsMake(10.0f, 0.0f, bottomInset, 0.0f);
67+
self.scrollIndicatorInsets = self.contentInset;
6668
}
6769

6870
@end

0 commit comments

Comments
 (0)