Browse Source

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

Fixed virtual scroll bug in a modal
Dustin Utecht 6 years ago
parent
commit
5181022d57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/virtual-scroll/index.js

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

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