File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -665,6 +665,7 @@ - (void)textDidUpdate:(BOOL)animated
665665 if (inputbarHeight != self.textInputbarHC .constant )
666666 {
667667 CGFloat inputBarHeightDelta = inputbarHeight - self.textInputbarHC .constant ;
668+ CGPoint newOffset = CGPointMake (0 , self.scrollViewProxy .contentOffset .y + inputBarHeightDelta);
668669 self.textInputbarHC .constant = inputbarHeight;
669670 self.scrollViewHC .constant = [self slk_appropriateScrollViewHeight ];
670671
@@ -678,7 +679,7 @@ - (void)textDidUpdate:(BOOL)animated
678679 options: UIViewAnimationOptionCurveEaseInOut|UIViewAnimationOptionLayoutSubviews|UIViewAnimationOptionBeginFromCurrentState
679680 animations: ^{
680681 if (!self.isInverted ) {
681- self.scrollViewProxy .contentOffset = CGPointMake ( 0 , self. scrollViewProxy . contentOffset . y + inputBarHeightDelta) ;
682+ self.scrollViewProxy .contentOffset = newOffset ;
682683 }
683684 if (weakSelf.textInputbar .isEditing ) {
684685 [weakSelf.textView slk_scrollToCaretPositonAnimated: NO ];
You can’t perform that action at this time.
0 commit comments