浏览代码

Merge pull request #4437 from wenzhixin/fix/virtual-scroll

Fixed virtual scroll bug in a modal
Dustin Utecht 6 年之前
父节点
当前提交
5181022d57
共有 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)
     }