iron-list icon indicating copy to clipboard operation
iron-list copied to clipboard

iron list ist destroying layout

Open jogibear9988 opened this issue 6 years ago • 1 comments

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

jogibear9988 avatar Mar 27 '18 11:03 jogibear9988

2018-03-27 14_42_53-developer tools - http___10 0 100 132_8088_index-orginal html 2018-03-27 14_43_06-developer tools - http___10 0 100 132_8088_index-orginal html

see offsetHeight is 0 (even if the computed style is not "0")

jogibear9988 avatar Mar 27 '18 12:03 jogibear9988