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

-invalidateIntrinsicContentSize in all controls #13

Open
cacaodev opened this issue Sep 12, 2016 · 0 comments
Open

-invalidateIntrinsicContentSize in all controls #13

cacaodev opened this issue Sep 12, 2016 · 0 comments

Comments

@cacaodev
Copy link
Owner

Call -invalidateIntrinsicContentSize in controls when appropriate (the content changes). Currently done in CPButton & subclasses.

Call this when something changes in your custom view that invalidates its intrinsic content size. This allows the constraint-based layout system to take the new intrinsic content size into account in its next layout pass.

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

No branches or pull requests

1 participant