|
|
@ -2775,8 +2775,12 @@ BI.CollectionView = BI.inherit(BI.Widget, { |
|
|
|
return Math.max(0, this._height - this.options.height + (this.options.overflowY ? BI.DOM.getScrollWidth() : 0)); |
|
|
|
return Math.max(0, this._height - this.options.height + (this.options.overflowY ? BI.DOM.getScrollWidth() : 0)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_populate: function () { |
|
|
|
_populate: function (items) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
if (items && items !== this.options.items) { |
|
|
|
|
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
|
|
|
|
} |
|
|
|
if (o.items.length > 0) { |
|
|
|
if (o.items.length > 0) { |
|
|
|
this.container.setWidth(this._width); |
|
|
|
this.container.setWidth(this._width); |
|
|
|
this.container.setHeight(this._height); |
|
|
|
this.container.setHeight(this._height); |
|
|
@ -2868,11 +2872,9 @@ BI.CollectionView = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
|
|
|
|
this.restore(); |
|
|
|
this.restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
this._populate(); |
|
|
|
this._populate(items); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.CollectionView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.CollectionView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
@ -14869,8 +14871,11 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
return Math.max(0, this._rowSizeAndPositionManager.getTotalSize() - this.options.height + (this.options.overflowY ? BI.DOM.getScrollWidth() : 0)); |
|
|
|
return Math.max(0, this._rowSizeAndPositionManager.getTotalSize() - this.options.height + (this.options.overflowY ? BI.DOM.getScrollWidth() : 0)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_populate: function () { |
|
|
|
_populate: function (items) { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
if (items && items !== this.options.items) { |
|
|
|
|
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
} |
|
|
|
if (o.items.length > 0) { |
|
|
|
if (o.items.length > 0) { |
|
|
|
this.columnCount = o.items[0].length; |
|
|
|
this.columnCount = o.items[0].length; |
|
|
|
this.rowCount = o.items.length; |
|
|
|
this.rowCount = o.items.length; |
|
|
@ -14978,10 +14983,9 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
this.restore(); |
|
|
|
this.restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
this._populate(); |
|
|
|
this._populate(items); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.GridView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.GridView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
@ -28866,10 +28870,10 @@ BI.CollectionTable = BI.inherit(BI.Widget, { |
|
|
|
run(this.bottomLeftItems, o.items, leftItems); |
|
|
|
run(this.bottomLeftItems, o.items, leftItems); |
|
|
|
run(this.bottomRightItems, o.items, rightItems); |
|
|
|
run(this.bottomRightItems, o.items, rightItems); |
|
|
|
|
|
|
|
|
|
|
|
this.topLeftCollection.populate(leftHeader); |
|
|
|
this.topLeftCollection._populate(leftHeader); |
|
|
|
this.topRightCollection.populate(rightHeader); |
|
|
|
this.topRightCollection._populate(rightHeader); |
|
|
|
this.bottomLeftCollection.populate(leftItems); |
|
|
|
this.bottomLeftCollection._populate(leftItems); |
|
|
|
this.bottomRightCollection.populate(rightItems); |
|
|
|
this.bottomRightCollection._populate(rightItems); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function () { |
|
|
|
_digest: function () { |
|
|
@ -29696,10 +29700,10 @@ BI.GridTable = BI.inherit(BI.Widget, { |
|
|
|
this.contextLayout.attr("items", items); |
|
|
|
this.contextLayout.attr("items", items); |
|
|
|
this.contextLayout.resize(); |
|
|
|
this.contextLayout.resize(); |
|
|
|
|
|
|
|
|
|
|
|
this.topLeftGrid.populate(this.header[0]); |
|
|
|
this.topLeftGrid._populate(this.header[0]); |
|
|
|
this.topRightGrid.populate(this.header[1]); |
|
|
|
this.topRightGrid._populate(this.header[1]); |
|
|
|
this.bottomLeftGrid.populate(this.items[0]); |
|
|
|
this.bottomLeftGrid._populate(this.items[0]); |
|
|
|
this.bottomRightGrid.populate(this.items[1]); |
|
|
|
this.bottomRightGrid._populate(this.items[1]); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_populate: function () { |
|
|
|
_populate: function () { |
|
|
|