Closed jakemac53 closed 9 years ago
@jakemac53 thanks for reporting this. I spent days trying to figure out why core-list wasn't working. I would have never of found this. An edit to the documentation is all that's necessary.
Agree, been tinkering with this one for a while. Wasn't able to see any generated HTML at all for the items in the list until I added 'fit':
<core-list id="list" data="{{data}}" fit>
<template>
stuff....
</template>
</core-list>
It didn't appear to render anything, so I spent a lot of time puzzling about my data. In reality, it was simply waiting for a height to be set so that it would start rendering items. The render/reuse aspect of the core list& its items is a great optimization, but docs definitely need to indicate this little detail.
Forked to see if I could update the docs & submit a pull request, but don't see a way to do this.
The "fit" fix works fine, I also had spent some hours trying to figure this one out, as per the docs, I saw that there is an edit in github link on the core-list guide, https://github.com/Polymer/docs/edit/master/docs/elements/core-elements.md, but doesn't seem to be the exact file, but maybe will help as a clue to find the documentation repo for core-list
http://jsbin.com/jivalamoci/3/edit is an example that would have worked in the previous version, but does not any longer. Uncommenting the style that sets a height makes it work.
There should at least be a note about it in the documentation, many users when upgrading think that its just broken now.