Skip to content

Commit

Permalink
Merge pull request #64 from pjchavarria/master
Browse files Browse the repository at this point in the history
carat not pointing to the insertion position the first time
  • Loading branch information
jmkk authored Mar 1, 2018
2 parents a158bc9 + e5b77b5 commit fdf90b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Hakawai/Mentions/HKWMentionsCreationStateMachine.m
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ - (void)showChooserView {
mode:mode];
[self.delegate accessoryViewActivated:YES];

// Force entityChooserView to be laid out before calculating the right cursor position.
[self.entityChooserView layoutIfNeeded];

// Move the chooser cursor to the right position
CGFloat newPosition = [self.delegate positionForChooserCursorRelativeToView:self.entityChooserView
atLocation:self.startingLocation];
Expand Down

0 comments on commit fdf90b1

Please sign in to comment.