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

Fixes scrollView.contentSize resizing #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

josipbernat
Copy link

When view was dynamically resized, scrollView.contentSize stayed the same. Because of that tokens had wrong layout.

@@ -187,6 +179,32 @@ - (NSString *)inputText

#pragma mark - View Layout

- (void)layoutSubviews {
Copy link
Contributor

Choose a reason for hiding this comment

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

To be consistent with our style:

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self commitLayoutSubviews];
}

@ayanonagon
Copy link
Contributor

Thank you for this pull-request! I've left some preliminary style comments. I'll play around with the functionality.

@josipbernat
Copy link
Author

Sorry for code style, recently I started to use __ for private methods and I really like it. But since this is your code I'll adjust to your code style :)

Btw do I need to make code changes or will you make them?

@ayanonagon
Copy link
Contributor

It would be great if you could make them. 😄

@ayanonagon ayanonagon force-pushed the master branch 2 times, most recently from 19b4b61 to a0495aa Compare September 17, 2014 04:32
@josipbernat
Copy link
Author

Sorry for delay in responding, done! :)

@josipbernat
Copy link
Author

Can you let me know will you merge this request or should I make subclass in my app to fix this issue? Thanks

@ayanonagon
Copy link
Contributor

Hi @josipbernat, sorry for the delay. Can you fix the curly brace style for

- (void)commitLayoutSubviews {

to

- (void)commitLayoutSubviews
{

and remove the newline after { to be consistent with the rest of the project? Same goes for layoutSubviews. After that, I'll merge. 👍

Sorry for nitpicking, and thanks again for the PR. :octocat:

@josipbernat
Copy link
Author

Sorry for delay in responding. Changed and pushed :)

@ayanonagon
Copy link
Contributor

Thanks for the updates! It looks like the Travis build failed for some reason (weird because all you changed is code style in the last commit). I'll take a look at the stack trace as well. 👍

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