iron-list
iron-list copied to clipboard
iron list ist destroying layout
Description
If I scroll down in my iron list, all items are at one place
Issue
Iron List uses every time the first item to calculate the items size, see: https://github.com/PolymerElements/iron-list/blob/0c9a66999bfe2208bb756d429217c2c87b4b0854/iron-list.html#L1290
problem is, if the first item in this list is invisible, the offsetWidth and Height are "0"
Browsers Affected
- [x] Chrome
- [x] Firefox
- [x] Safari 9
- [x] Safari 8
- [x] Safari 7
- [x] Edge
- [x] IE 11
- [x] IE 10
see offsetHeight is 0 (even if the computed style is not "0")