File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1196,6 +1196,7 @@ - (void)slk_adjustContentConfigurationIfNeeded
1196
1196
// scrollView correctly to its top edge.
1197
1197
if (self.inverted ) {
1198
1198
contentInset.bottom = [self slk_topBarsHeight ];
1199
+ contentInset.top = contentInset.bottom > 0.0 ? 0.0 : contentInset.top ;
1199
1200
}
1200
1201
else {
1201
1202
contentInset.bottom = 0.0 ;
@@ -2077,7 +2078,7 @@ - (void)slk_setupViewConstraints
2077
2078
@" textInputbar" : self.textInputbar ,
2078
2079
};
2079
2080
2080
- [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[scrollView(0@750)][autoCompletionView(0@750)][typingIndicatorView(0)]-0-[textInputbar(== 0)]-0-|" options: 0 metrics: nil views: views]];
2081
+ [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[scrollView(0@750)][autoCompletionView(0@750)][typingIndicatorView(0)]-0@999 -[textInputbar(0)]-0-|" options: 0 metrics: nil views: views]];
2081
2082
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[scrollView]|" options: 0 metrics: nil views: views]];
2082
2083
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[autoCompletionView]|" options: 0 metrics: nil views: views]];
2083
2084
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[typingIndicatorView]|" options: 0 metrics: nil views: views]];
@@ -2090,7 +2091,6 @@ - (void)slk_setupViewConstraints
2090
2091
self.keyboardHC = [self .view slk_constraintForAttribute: NSLayoutAttributeBottom firstItem: self .view secondItem: self .textInputbar];
2091
2092
2092
2093
self.textInputbarHC .constant = self.textInputbar .minimumInputbarHeight ;
2093
-
2094
2094
self.scrollViewHC .constant = [self slk_appropriateScrollViewHeight ];
2095
2095
2096
2096
if (self.textInputbar .isEditing ) {
You can’t perform that action at this time.
0 commit comments