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

Commit

Permalink
Modifies view constraints so the typing indicator view doesn't push t…
Browse files Browse the repository at this point in the history
…he tableView up and down anymore
  • Loading branch information
Ignacio Romero Zurbuchen committed Mar 30, 2016
1 parent 01b5925 commit 7ddc7bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/SLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ - (BOOL)slk_updateKeyboardStatus:(SLKKeyboardStatus)status
}


#pragma mark - Public & Subclassable Methods
#pragma mark - Public & Subclass Callbacks Methods

- (void)presentKeyboard:(BOOL)animated
{
Expand Down Expand Up @@ -2143,7 +2143,8 @@ - (void)slk_setupViewConstraints
@"textInputbar": self.textInputbar,
};

[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[scrollView(0@750)][typingIndicatorView(0)]-0@999-[textInputbar(0)]|" options:0 metrics:nil views:views]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[scrollView(0@750)][textInputbar(0)]|" options:0 metrics:nil views:views]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[typingIndicatorView(0)]-0@999-[textInputbar]|" options:0 metrics:nil views:views]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-(>=0)-[autoCompletionView(0@750)][typingIndicatorView]" options:0 metrics:nil views:views]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[scrollView]|" options:0 metrics:nil views:views]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[autoCompletionView]|" options:0 metrics:nil views:views]];
Expand Down

0 comments on commit 7ddc7bc

Please sign in to comment.