File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 359359 delta . paddingBottom = paddingBottom
360360 delta . offsetAll = allHeight - this . size * this . remain
361361
362- var targets = [ ]
362+ // here we shoud try getZone to ensure start/end is right after new list. #88
363+ var zone = this . getZone ( delta . start )
364+ if ( zone . start !== delta . start || zone . end !== delta . end ) {
365+ delta . end = zone . end
366+ delta . start = zone . start
367+ }
363368
369+ var targets = [ ]
364370 for ( var i = delta . start ; i <= Math . ceil ( delta . end ) ; i ++ ) {
365371 // create vnode, using custom attrs binder.
366372 var slot = this . item ? this . $createElement ( this . item , this . itemprop ( i , this . items [ i ] ) ) : slots [ i ]
389395 var zone = this . getZone ( calcstart )
390396
391397 // if start, size or offset change, update scroll position.
392- if ( ~ [ 'start' , 'size' , 'offset' ] . indexOf ( this . alter ) ) {
398+ if ( this . alter && ~ [ 'start' , 'size' , 'offset' ] . indexOf ( this . alter ) ) {
393399 var scrollTop = this . alter === 'offset'
394400 ? this . offset : this . variable
395401 ? this . getVarOffset ( zone . isLast ? delta . total : zone . start )
You can’t perform that action at this time.
0 commit comments