Revert "Height cache stick to reduce jitteryness, fixes #117"

This reverts commit fabb300caf.
This commit is contained in:
Alex Gleason 2020-05-26 21:41:35 -05:00
parent f3ca015e17
commit 70a3e53db4
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -120,14 +120,7 @@ export default class IntersectionObserverArticle extends React.Component {
} }
return ( return (
<article <article ref={this.handleRef} aria-posinset={index + 1} aria-setsize={listLength} data-id={id} tabIndex='0'>
ref={this.handleRef}
aria-posinset={index + 1}
aria-setsize={listLength}
style={{ height: cachedHeight ? `${cachedHeight}px` : null }}
data-id={id}
tabIndex='0'
>
{children && React.cloneElement(children, { hidden: false })} {children && React.cloneElement(children, { hidden: false })}
</article> </article>
); );