Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Trigger a relayout once the media image of PostNode in SocialAppLayout is loaded - #857

Merged
appleguy merged 1 commit into
facebookarchive:masterfrom
nguyenhuy:ImproveSocialAppLayoutSample
Nov 29, 2015
Merged

Trigger a relayout once the media image of PostNode in SocialAppLayout is loaded#857
appleguy merged 1 commit into
facebookarchive:masterfrom
nguyenhuy:ImproveSocialAppLayoutSample

Conversation

@nguyenhuy

Copy link
Copy Markdown
Contributor

I was looking for a sample code to answer @bimawa's question in #855 when I found out that, although a reserve-image-ratio logic is available in PostNode of SocialAppLayout example, it isn't used. No use no more :)

@bimawa

bimawa commented Nov 17, 2015

Copy link
Copy Markdown
Contributor

@nguyenhuy I'm biMawa (Maxim) :P . And yea i see that too i forgot say about that.

@nguyenhuy

Copy link
Copy Markdown
Contributor Author

Oops, sorry for the mistake :( Edited

@bimawa

bimawa commented Nov 17, 2015

Copy link
Copy Markdown
Contributor

No problem ;)

@appleguy

Copy link
Copy Markdown
Contributor

@nguyenhuy Thanks for the fix. This code is a little hard to understand, however - certainly as an author, it would be a bit of a struggle to write. Is there any way you can think of to trigger this automatically? Should the image node simply mark itself as needing layout, because I am nearly certain that once the layout pass runs, that will make the supernode perform a layout? This would be ideal solution, if feasible.

appleguy added a commit that referenced this pull request Nov 29, 2015
Trigger a relayout once the media image of PostNode in SocialAppLayout is loaded
@appleguy
appleguy merged commit 6ea01d6 into facebookarchive:master Nov 29, 2015
peter-iakovlev pushed a commit to peter-iakovlev/AsyncDisplayKit that referenced this pull request Jul 21, 2018
…#857)

* Make NSIndexSet+ASHelpers.h reference local

NSIndexSet+ASHelpers.h should be a user vs a system or framework include.

* Update ASIntegerMap.mm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants