Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On iOS 7+, scrollView's contentOffset is set so that the table cannot be scrolled to top #86

Open
dannyl07 opened this issue Apr 3, 2014 · 1 comment

Comments

@dannyl07
Copy link

dannyl07 commented Apr 3, 2014

See attached screenshot. screen-181

Looks like the TITokenField has been pushed to the top so it's under my UINavigationBar.

I was able to fix this by commenting out line 843-844 in TITokenField.m. Not sure what is the purpose of these two lines
:

    CGFloat offset = ((_numberOfLines == 1 || !flag) ? 0 : _tokenCaret.y - floor(self.font.lineHeight * 4 / 7) + 1);
    [scrollView setContentOffset:CGPointMake(0, self.frame.origin.y + offset) animated:animated];
@RishabhTayal
Copy link

I had the same issue...thanks for the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants