File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-flow-render" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "main" : " dist/vue-flow-render.umd.min.js" ,
55 "files" : [
66 " dist"
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export default {
7474 } else {
7575 this . _computeRenderHeight ( this . isSameHeight ? undefined : this . $slots . default . slice ( oldVal , newVal ) , oldVal )
7676 }
77+ this . _adjustStart ( )
7778 }
7879 } ,
7980 mounted ( ) {
@@ -256,8 +257,9 @@ export default {
256257 */
257258 for ( let i = start + remain ; i < total ; i ++ ) {
258259 if ( cache [ i ] . bottom >= scrollBottom ) {
259- this . paddingTop = cache [ i - remain ] . top
260- this . start = i - remain
260+ const index = i - remain + 1
261+ this . paddingTop = cache [ index ] . top
262+ this . start = index
261263 break
262264 }
263265 }
You can’t perform that action at this time.
0 commit comments