react-lazyload icon indicating copy to clipboard operation
react-lazyload copied to clipboard

Set placeholder width to real component size

Open Paso opened this issue 4 years ago • 0 comments

Set placeholder width to real component size after render when using unmountIfInvisible. This solves the problem of items jumping around when scrolling. Usefull for when parent component rendering LazyLoad doesn't know the height of the child component. The added example shows the problem when run without the visibleHeight patch and works flawless with it.

Paso avatar Apr 02 '21 12:04 Paso