kamilkp / ng2-vs-for

Virtual Scroll repeater for Angular2
MIT License
42 stars 25 forks source link

Scroll does not work #5

Open dudafreitasrj opened 8 years ago

dudafreitasrj commented 8 years ago

Good afternoon!

My list despite being displayed correctly, it is not scrolling correctly.

An example follows:

https://plnkr.co/edit/8nHU9WsoPbsH5Sp6GP7X?p=preview

Thank you for your help

evolvingfunctions commented 8 years ago

In your example, scroll will work when getSize returns any value equal less than 0.4.

    getSize(item, index){
      return 0.4;
    }
sstorie commented 8 years ago

Sorry if this is obvious, but if the size is specified in pixels, where did this 0.4 value come from?