This repository was archived by the owner on Oct 30, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1195,7 +1195,6 @@ - (void)slk_adjustContentConfigurationIfNeeded
11951195 // When inverted, we need to substract the top bars height (generally status bar + navigation bar's) to align the top of the
11961196 // scrollView correctly to its top edge.
11971197 if (self.inverted ) {
1198- contentInset.top = 0.0 ;
11991198 contentInset.bottom = [self slk_topBarsHeight ];
12001199 }
12011200 else {
@@ -2078,7 +2077,7 @@ - (void)slk_setupViewConstraints
20782077 @" textInputbar" : self.textInputbar ,
20792078 };
20802079
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]];
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]];
20822081 [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[scrollView]|" options: 0 metrics: nil views: views]];
20832082 [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[autoCompletionView]|" options: 0 metrics: nil views: views]];
20842083 [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[typingIndicatorView]|" options: 0 metrics: nil views: views]];
@@ -2091,6 +2090,7 @@ - (void)slk_setupViewConstraints
20912090 self.keyboardHC = [self .view slk_constraintForAttribute: NSLayoutAttributeBottom firstItem: self .view secondItem: self .textInputbar];
20922091
20932092 self.textInputbarHC .constant = self.textInputbar .minimumInputbarHeight ;
2093+
20942094 self.scrollViewHC .constant = [self slk_appropriateScrollViewHeight ];
20952095
20962096 if (self.textInputbar .isEditing ) {
You can’t perform that action at this time.
0 commit comments