File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ - (void)checkScrollViewChanged {
7474#pragma mark - Scrollable
7575
7676- (void )setScrollViewContentInset : (CGFloat)contentBottom indicatorInset : (CGFloat)indicatorBottom {
77- if (!_pinnedScrollView) return ;
77+ if (!_pinnedScrollView)
78+ return ;
7879
7980 UIEdgeInsets contentInset = _pinnedScrollView.scrollView .contentInset ;
8081 contentInset.bottom = contentBottom;
@@ -214,7 +215,7 @@ - (void)keyboardWillShow:(CGFloat)height duration:(NSTimeInterval)duration curve
214215 options: curve | UIViewAnimationOptionBeginFromCurrentState
215216 animations: ^{
216217 [self setScrollViewContentInset: height
217- indicatorInset: self ->_originalIndicatorBottomInset + height];
218+ indicatorInset: self ->_originalIndicatorBottomInset + height];
218219
219220 if (firstResponder) {
220221 CGRect responderFrame = [firstResponder convertRect: firstResponder.bounds
@@ -236,7 +237,7 @@ - (void)keyboardWillHide:(NSTimeInterval)duration curve:(UIViewAnimationOptions)
236237 options: curve | UIViewAnimationOptionBeginFromCurrentState
237238 animations: ^{
238239 [self setScrollViewContentInset: self ->_bottomInset
239- indicatorInset: self ->_originalIndicatorBottomInset];
240+ indicatorInset: self ->_originalIndicatorBottomInset];
240241 }
241242 completion: nil ];
242243}
You can’t perform that action at this time.
0 commit comments