Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit f2d2851

Browse files
author
Ignacio Romero Zurbuchen
committed
Don't mess with the top content inset (causes bad alignment issues at times)
1 parent 9465dc1 commit f2d2851

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/SLKTextViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)