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

Create delegate method for changes in tokenFieldHeight #85

Merged
merged 2 commits into from
Jan 6, 2016

Conversation

dasmer
Copy link
Contributor

@dasmer dasmer commented Dec 21, 2015

This way, implementations that use auto-layout can respond to height changes by modifying height constraint constants.

if (oldHeight != height
&& [self.delegate respondsToSelector:@selector(tokenField:didChangeContentHeight:)]) {
[self.delegate tokenField:self didChangeContentHeight:height];
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to also call [self setHeight:] when there is no delegate set for backwards compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goood point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for that catch @ayanonagon
done in a6c26aa

@ayanonagon
Copy link
Contributor

🍏 Thanks for making the change!

dasmer added a commit that referenced this pull request Jan 6, 2016
Create delegate method for changes in tokenFieldHeight
@dasmer dasmer merged commit 3f55203 into master Jan 6, 2016
@dasmer dasmer deleted the daz/changeHeight branch January 6, 2016 04:34
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

Successfully merging this pull request may close these issues.

2 participants