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

infinite layoutSubviews loop #9

Closed
vitalrum opened this issue May 22, 2017 · 2 comments
Closed

infinite layoutSubviews loop #9

vitalrum opened this issue May 22, 2017 · 2 comments

Comments

@vitalrum
Copy link

Hi, thanks for good work.
But... bug:
just enter fast some lines like this:
http://joxi.ru/DrlBkR0i4bW4j2

layoutSubviews infinite calls, CPU usage 100%

@KennethTsang
Copy link
Owner

It's caused by sizeThatFits triggers layoutSubviews everytime. I added a checking to prevent calling sizeThatFits if text and orientation didn't change.

Thanks!

@vitalrum
Copy link
Author

Thank you , so fast fix!

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