|
|
@ -162,7 +162,7 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
_columnIndex: columnIndex, |
|
|
|
_columnIndex: columnIndex, |
|
|
|
_left: columnDatum.offset + horizontalOffsetAdjustment, |
|
|
|
_left: columnDatum.offset + horizontalOffsetAdjustment, |
|
|
|
_top: rowDatum.offset + verticalOffsetAdjustment |
|
|
|
_top: rowDatum.offset + verticalOffsetAdjustment |
|
|
|
})); |
|
|
|
}), this); |
|
|
|
renderedCells.push({ |
|
|
|
renderedCells.push({ |
|
|
|
el: child, |
|
|
|
el: child, |
|
|
|
left: columnDatum.offset + horizontalOffsetAdjustment, |
|
|
|
left: columnDatum.offset + horizontalOffsetAdjustment, |
|
|
@ -208,7 +208,7 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
BI.each(addSet, function (index, key) { |
|
|
|
BI.each(addSet, function (index, key) { |
|
|
|
addedItems.push(renderedCells[key[2]]); |
|
|
|
addedItems.push(renderedCells[key[2]]); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.container.addItems(addedItems); |
|
|
|
this.container.addItems(addedItems, this); |
|
|
|
// 拦截父子级关系
|
|
|
|
// 拦截父子级关系
|
|
|
|
this.container._children = renderedWidgets; |
|
|
|
this.container._children = renderedWidgets; |
|
|
|
this.container.attr("items", renderedCells); |
|
|
|
this.container.attr("items", renderedCells); |
|
|
@ -376,4 +376,4 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.GridView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.GridView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.shortcut("bi.grid_view", BI.GridView); |
|
|
|
BI.shortcut("bi.grid_view", BI.GridView); |
|
|
|