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

fix nan position #71

Merged
merged 2 commits into from
Jun 14, 2017
Merged

fix nan position #71

merged 2 commits into from
Jun 14, 2017

Conversation

AlexZd
Copy link

@AlexZd AlexZd commented Jun 14, 2017

I used it as child view contoller.
I faced an issue when my pager scrollView had .zero frame (maybe it happens before applying constrains), not sure exactly how.
When it is .zero, position becomes NaN and then it tries to assign to constraint value which is causing a crash.
At the end I'm getting it fine without any constraint warnings.
This is not changing any logic, just preventing a crash if there is some bad value in position

@msaps msaps changed the base branch from master to develop June 14, 2017 14:44
@msaps msaps merged commit 2da3fbe into uias:develop Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants