Position sizer at top: 0 to prevent header-related bugs

master v1.0.12
Vitaliy Filippov 2019-08-05 20:05:31 +03:00
parent 24b12584d0
commit 43f9864c13
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ export class VirtualScrollList extends React.Component
onScroll={this.onScroll}>
{this.props.header}
{this.state.targetHeight > 0
? <div key="target" style={{position: 'absolute', left: '-5px', width: '1px', height: this.state.targetHeight+'px'}}></div>
? <div key="target" style={{position: 'absolute', top: 0, left: '-5px', width: '1px', height: this.state.targetHeight+'px'}}></div>
: null}
{this.state.topPlaceholderHeight
? <div style={{height: this.state.topPlaceholderHeight+'px'}} key="top"></div>

View File

@ -1,6 +1,6 @@
{
"name": "dynamic-virtual-scroll",
"version": "1.0.11",
"version": "1.0.12",
"author": {
"name": "Vitaliy Filippov",
"email": "vitalif@yourcmc.ru",