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 pager node for interface coalescing #877

Conversation

wsdwsd0829
Copy link
Contributor

This suppose to fix #845 from interface coalescing point of view.

Copy link
Member

@Adlai-Holler Adlai-Holler left a comment

Choose a reason for hiding this comment

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

This diff looks fine, thanks for fixing! Just two typos and then we'll merge this one.

@@ -362,6 +362,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)didExitHierarchy ASDISPLAYNODE_REQUIRES_SUPER;

/**
* Called just after the view is added to a window.
* Note: this may be called multiple times during view controller transitions. To overcome this: use didEnterVisibleState or it's equavalents.
Copy link
Member

Choose a reason for hiding this comment

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

nit: or its equivalents, no apostrophe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -2996,6 +2998,14 @@ - (void)willEnterHierarchy
}
}

- (void)didEnterHierarchy {
ASDisplayNodeAssertMainThread();
ASDisplayNodeAssert(!_flags.isEnteringHierarchy, @"You should never call -willEnterHierarchy directly. Appearance is automatically managed by ASDisplayNode");
Copy link
Member

Choose a reason for hiding this comment

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

Update. comment You should never call -didEnterHierarchy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks.

@Adlai-Holler
Copy link
Member

(Sorry Max) One more thing, could you add a line to the changelog describing the fix?

@wsdwsd0829
Copy link
Contributor Author

Done, sorry keep forgetting that :).

@wsdwsd0829 wsdwsd0829 closed this May 18, 2018
@maicki
Copy link
Contributor

maicki commented May 18, 2018

@wsdwsd0829 I think you accidentally closed the PR - reopening :)

@maicki maicki reopened this May 18, 2018
@wsdwsd0829
Copy link
Contributor Author

wsdwsd0829 commented May 18, 2018 via email

@Adlai-Holler Adlai-Holler merged commit 06358d8 into TextureGroup:master May 19, 2018
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.

[ASPagerNode] Layout bug introduced by 2618c5 #788
3 participants