File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 220
220
// return a variable size (height) from a given index.
221
221
getVarSize : function ( index ) {
222
222
var cache = this . delta . varCache [ index ]
223
- return ( cache && cache . size ) || this . variable ( index ) || this . size
223
+ return ( cache && cache . size ) || this . variable ( index ) || 0
224
224
} ,
225
225
226
226
// return the paddingBottom when variable height base current zone.
230
230
return this . getVarOffset ( delta . total ) - this . getVarOffset ( delta . end )
231
231
} else {
232
232
// if unreached last zone or uncalculate real behind offset
233
- // continue return the estimate paddingBottom avoid max calculate.
233
+ // return the estimate paddingBottom avoid too much calculate.
234
234
return ( delta . total - delta . end ) * ( delta . averageSize || this . size )
235
235
}
236
236
} ,
You can’t perform that action at this time.
0 commit comments