twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.86k stars 487 forks source link

getBoundingClientRect invalid #245

Open curry-wxj opened 5 years ago

curry-wxj commented 5 years ago
 <LazyLoad overflow key={index} height={300}>
         <Dev style={{ width: '100%', float: 'left', height: 300 }} />
 </LazyLoad>

Set up "float" attribute invalid, Because of the use getBoundingClientRect()