ソースを参照

Fixed virtual scroll bug in a modal

zhixin 6 年 前
コミット
b2fb01a82f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/virtual-scroll/index.js

+ 1 - 1
src/virtual-scroll/index.js

@@ -32,7 +32,7 @@ class VirtualScroll {
   }
 
   initDOM (rows) {
-    if (!this.clusterHeight) {
+    if (typeof this.clusterHeight === 'undefined') {
       this.cache.data = this.contentEl.innerHTML = rows[0] + rows[0] + rows[0]
       this.getRowsHeight(rows)
     }