Adjust placement of scrolling torrent list

This commit is contained in:
John Furrow
2015-11-14 19:26:19 -08:00
parent e090fd4954
commit b6ecffa6ae
4 changed files with 69 additions and 23 deletions

View File

@@ -173,18 +173,19 @@ class TorrentList extends React.Component {
}
return (
<ul className="torrent__list" ref="torrentList"
onScroll={this.handleScroll}>
<li className="torrent__spacer torrent__spacer--top"
style={{
height: listPadding.top + 'px'
}}></li>
{torrentList}
<li className="torrent__spacer torrent__spacer--bottom"
style={{
height: listPadding.bottom + 'px'
}}></li>
</ul>
<div className="torrent__list__wrapper" onScroll={this.handleScroll} ref="torrentList">
<ul className="torrent__list">
<li className="torrent__spacer torrent__spacer--top"
style={{
height: listPadding.top + 'px'
}}></li>
{torrentList}
<li className="torrent__spacer torrent__spacer--bottom"
style={{
height: listPadding.bottom + 'px'
}}></li>
</ul>
</div>
);
}