|
|
|
@ -2639,7 +2639,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
var childrenToDisplay = this._cellRenderers(bottom - top, right - left, left, top); |
|
|
|
|
var renderedCells = [], renderedKeys = []; |
|
|
|
|
var renderedCells = [], renderedKeys = [], renderedWidgets = {}; |
|
|
|
|
//存储所有的left和top
|
|
|
|
|
var lefts = {}, tops = {}; |
|
|
|
|
for (var i = 0, len = childrenToDisplay.length; i < len; i++) { |
|
|
|
@ -2722,6 +2722,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
renderedKeys.push(datum.index); |
|
|
|
|
renderedWidgets[i] = child; |
|
|
|
|
} |
|
|
|
|
//已存在的, 需要添加的和需要删除的
|
|
|
|
|
var existSet = {}, addSet = {}, deleteArray = []; |
|
|
|
@ -2751,7 +2752,8 @@ BI.CollectionView = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.container.addItems(addedItems); |
|
|
|
|
//拦截父子级关系
|
|
|
|
|
this.container._children = renderedCells; |
|
|
|
|
this.container._children = renderedWidgets; |
|
|
|
|
this.container.attr("items", renderedCells); |
|
|
|
|
this.renderedCells = renderedCells; |
|
|
|
|
this.renderedKeys = renderedKeys; |
|
|
|
|
|
|
|
|
@ -14771,7 +14773,7 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var renderedCells = [], renderedKeys = []; |
|
|
|
|
var renderedCells = [], renderedKeys = [], renderedWidgets = {}; |
|
|
|
|
var minX = this._getMaxScrollLeft(), minY = this._getMaxScrollTop(), maxX = 0, maxY = 0; |
|
|
|
|
for (var rowIndex = rowStartIndex; rowIndex <= rowStopIndex; rowIndex++) { |
|
|
|
|
var rowDatum = this._rowSizeAndPositionManager.getSizeAndPositionOfCell(rowIndex); |
|
|
|
@ -14822,6 +14824,7 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
minY = Math.min(minY, rowDatum.offset + verticalOffsetAdjustment); |
|
|
|
|
maxY = Math.max(maxY, rowDatum.offset + verticalOffsetAdjustment + rowDatum.size); |
|
|
|
|
renderedKeys.push(key); |
|
|
|
|
renderedWidgets[i] = child; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//已存在的, 需要添加的和需要删除的
|
|
|
|
@ -14852,7 +14855,8 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.container.addItems(addedItems); |
|
|
|
|
//拦截父子级关系
|
|
|
|
|
this.container._children = renderedCells; |
|
|
|
|
this.container._children = renderedWidgets; |
|
|
|
|
this.container.attr("items", renderedCells); |
|
|
|
|
this.renderedCells = renderedCells; |
|
|
|
|
this.renderedKeys = renderedKeys; |
|
|
|
|
this.renderRange = {minX: minX, minY: minY, maxX: maxX, maxY: maxY}; |
|
|
|
|