Fixed: Virtual tables/grids on Mobile

pull/6/head
Qstick 7 years ago
parent b5339b75ff
commit 6ff5e6337b

@ -288,7 +288,7 @@ class ArtistIndexBanners extends Component {
return ( return (
<Measure onMeasure={this.onMeasure}> <Measure onMeasure={this.onMeasure}>
<WindowScroller <WindowScroller
scrollElement={isSmallScreen ? null : this._contentBodyNode} scrollElement={isSmallScreen ? undefined : this._contentBodyNode}
onScroll={onScroll} onScroll={onScroll}
> >
{({ height, isScrolling }) => { {({ height, isScrolling }) => {

@ -232,7 +232,7 @@ class ArtistIndexOverviews extends Component {
return ( return (
<Measure onMeasure={this.onMeasure}> <Measure onMeasure={this.onMeasure}>
<WindowScroller <WindowScroller
scrollElement={isSmallScreen ? null : this._contentBodyNode} scrollElement={isSmallScreen ? undefined : this._contentBodyNode}
onScroll={onScroll} onScroll={onScroll}
> >
{({ height, isScrolling }) => { {({ height, isScrolling }) => {

@ -288,7 +288,7 @@ class ArtistIndexPosters extends Component {
return ( return (
<Measure onMeasure={this.onMeasure}> <Measure onMeasure={this.onMeasure}>
<WindowScroller <WindowScroller
scrollElement={isSmallScreen ? null : this._contentBodyNode} scrollElement={isSmallScreen ? undefined : this._contentBodyNode}
onScroll={onScroll} onScroll={onScroll}
> >
{({ height, isScrolling }) => { {({ height, isScrolling }) => {

@ -102,7 +102,7 @@ class VirtualTable extends Component {
return ( return (
<Measure onMeasure={this.onMeasure}> <Measure onMeasure={this.onMeasure}>
<WindowScroller <WindowScroller
scrollElement={isSmallScreen ? null : this._contentBodyNode} scrollElement={isSmallScreen ? undefined : this._contentBodyNode}
onScroll={onScroll} onScroll={onScroll}
> >
{({ height, isScrolling }) => { {({ height, isScrolling }) => {

Loading…
Cancel
Save