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

[ASCollectionNode] Fix missing properties and layoutInspector #trivial #305

Merged
merged 2 commits into from
May 29, 2017
Merged

[ASCollectionNode] Fix missing properties and layoutInspector #trivial #305

merged 2 commits into from
May 29, 2017

Conversation

flovouin
Copy link
Contributor

Hi guys,

Some ASCollectionView properties have recently been deprecated in favour of their ASCollectionNode counterparts, but it turns out that they're not fully functional yet:

  • The layoutInspector from the _pendingState is not forwarded to the view in didLoad, which means that setting it only works after the view has been loaded, which kinda defeats the purpose of having the property at the node level.
  • The scrollDirection and scrollableDirections properties are not implemented, which means that we never get the actual value from the underlying view.

These two problems are demonstrated in this sample project (along with a waterfall layout that could be useful to some Texture users :-)): https://github.com/flovouin/Texture-CollectionNodeProperties

The layoutInspector fix is rather straightforward. However concerning the property forwarding, I'm not entirely sure what the guidelines are. I just made sure not to load the view needlessly, but you might have a better way to do that. Please tell me and I'll update the PR ASAP if needed.

Cheers,
Flo

@CLAassistant
Copy link

CLAassistant commented May 24, 2017

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link

ghost commented May 24, 2017

1 Warning
⚠️ Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

Generated by 🚫 Danger

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.

As always, this is an absolutely killer diff @flovouin. Clean and functional. Thanks! Either add #trivial or update the CHANGELOG to give yourself credit, and then we'll land this guy.

@flovouin flovouin changed the title [ASCollectionNode] Fix missing properties and layoutInspector [ASCollectionNode] Fix missing properties and layoutInspector #trivial May 29, 2017
@flovouin
Copy link
Contributor Author

Thanks! As this is not a new feature but a straightforward bug fix, I'm marking it as trivial.
Cheers,

@Adlai-Holler Adlai-Holler merged commit be956e9 into TextureGroup:master May 29, 2017
@flovouin flovouin deleted the ASCollectionNodeMissingProperties branch July 25, 2017 11:52
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
TextureGroup#305)

* [ASCollectionNode] Set the layoutInspector from the pendingState in didLoad.

* [ASCollectionNode] Forward scroll properties from the view.
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.

None yet

3 participants