File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -664,6 +664,7 @@ - (void)textDidUpdate:(BOOL)animated
664
664
665
665
if (inputbarHeight != self.textInputbarHC .constant )
666
666
{
667
+ CGFloat inputBarHeightDelta = inputbarHeight - self.textInputbarHC .constant ;
667
668
self.textInputbarHC .constant = inputbarHeight;
668
669
self.scrollViewHC .constant = [self slk_appropriateScrollViewHeight ];
669
670
@@ -676,8 +677,12 @@ - (void)textDidUpdate:(BOOL)animated
676
677
[self .view slk_animateLayoutIfNeededWithBounce: bounces
677
678
options: UIViewAnimationOptionCurveEaseInOut|UIViewAnimationOptionLayoutSubviews|UIViewAnimationOptionBeginFromCurrentState
678
679
animations: ^{
680
+ if (!self.isInverted ) {
681
+ self.scrollViewProxy .contentOffset = CGPointMake (0 , self.scrollViewProxy .contentOffset .y + inputBarHeightDelta);
682
+ }
679
683
if (weakSelf.textInputbar .isEditing ) {
680
684
[weakSelf.textView slk_scrollToCaretPositonAnimated: NO ];
685
+
681
686
}
682
687
}];
683
688
}
You can’t perform that action at this time.
0 commit comments