浏览代码

HUE-5870 [importer] Handle collection size changes in the foreachVisible binding

Johan Ahlen 8 年之前
父节点
当前提交
585fad9367
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4375,7 +4375,7 @@
       // height changes of the elements.
       var renderedElements = [];
 
-      if (! $parentFVOwnerElement.data('lastKnownHeights')) {
+      if (! $parentFVOwnerElement.data('lastKnownHeights') || $parentFVOwnerElement.data('lastKnownHeights').length !== allEntries.length) {
         var lastKnownHeights = [];
         $.each(allEntries, function () {
           lastKnownHeights.push(entryMinHeight);