|
|
@ -14978,12 +14978,15 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.items.length > 0) { |
|
|
|
if (BI.isNumber(o.columnCount)) { |
|
|
|
|
|
|
|
this.columnCount = o.columnCount; |
|
|
|
|
|
|
|
} else if (o.items.length > 0) { |
|
|
|
this.columnCount = o.items[0].length; |
|
|
|
this.columnCount = o.items[0].length; |
|
|
|
this.rowCount = o.items.length; |
|
|
|
} |
|
|
|
|
|
|
|
if (BI.isNumber(o.rowCount)) { |
|
|
|
|
|
|
|
this.rowCount = o.rowCount; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.rowCount = 0; |
|
|
|
this.rowCount = o.items.length; |
|
|
|
this.columnCount = 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.container.setWidth(this.columnCount * o.estimatedColumnSize); |
|
|
|
this.container.setWidth(this.columnCount * o.estimatedColumnSize); |
|
|
|
this.container.setHeight(this.rowCount * o.estimatedRowSize); |
|
|
|
this.container.setHeight(this.rowCount * o.estimatedRowSize); |
|
|
@ -15022,6 +15025,14 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
this.element.scrollTop(this.options.scrollTop); |
|
|
|
this.element.scrollTop(this.options.scrollTop); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setColumnCount: function (columnCount) { |
|
|
|
|
|
|
|
this.options.columnCount = columnCount |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setRowCount: function (rowCount) { |
|
|
|
|
|
|
|
this.options.rowCount = rowCount |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setOverflowX: function (b) { |
|
|
|
setOverflowX: function (b) { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
if (this.options.overflowX !== !!b) { |
|
|
|
if (this.options.overflowX !== !!b) { |
|
|
@ -15132,6 +15143,8 @@ BI.FloatBox = BI.inherit(BI.Widget, { |
|
|
|
if (ui.position.top < 0) { |
|
|
|
if (ui.position.top < 0) { |
|
|
|
ui.position.top = 0; |
|
|
|
ui.position.top = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//BI-12134 没有什么特别好的方法
|
|
|
|
|
|
|
|
BI.Resizers._resize(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this._south = BI.createWidget(); |
|
|
|
this._south = BI.createWidget(); |
|
|
@ -31304,6 +31317,11 @@ BI.GridTable = BI.inherit(BI.Widget, { |
|
|
|
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0); |
|
|
|
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0); |
|
|
|
this.bottomRightGrid.setEstimatedRowSize(o.rowSize); |
|
|
|
this.bottomRightGrid.setEstimatedRowSize(o.rowSize); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.topLeftGrid.setColumnCount(freezeColLength); |
|
|
|
|
|
|
|
this.topRightGrid.setColumnCount(o.columnSize.length - freezeColLength); |
|
|
|
|
|
|
|
this.bottomLeftGrid.setColumnCount(freezeColLength); |
|
|
|
|
|
|
|
this.bottomRightGrid.setColumnCount(o.columnSize.length - freezeColLength); |
|
|
|
|
|
|
|
|
|
|
|
var items = this.contextLayout.attr("items"); |
|
|
|
var items = this.contextLayout.attr("items"); |
|
|
|
items[1].left = regionSize; |
|
|
|
items[1].left = regionSize; |
|
|
|
items[2].top = this._getFreezeHeaderHeight(); |
|
|
|
items[2].top = this._getFreezeHeaderHeight(); |
|
|
|