guy 7 years ago
parent
commit
f6ce53b206
  1. 24
      bi/base.js
  2. 24
      dist/base.js
  3. 24
      dist/bundle.js
  4. 52
      dist/bundle.min.js
  5. 19
      src/base/grid/grid.js
  6. 5
      src/base/table/table.grid.js

24
bi/base.js

@ -14978,12 +14978,15 @@ BI.GridView = BI.inherit(BI.Widget, {
if (items && items !== this.options.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.rowCount = o.items.length;
}
if (BI.isNumber(o.rowCount)) {
this.rowCount = o.rowCount;
} else {
this.rowCount = 0;
this.columnCount = 0;
this.rowCount = o.items.length;
}
this.container.setWidth(this.columnCount * o.estimatedColumnSize);
this.container.setHeight(this.rowCount * o.estimatedRowSize);
@ -15022,6 +15025,14 @@ BI.GridView = BI.inherit(BI.Widget, {
this.element.scrollTop(this.options.scrollTop);
},
setColumnCount: function (columnCount) {
this.options.columnCount = columnCount
},
setRowCount: function (rowCount) {
this.options.rowCount = rowCount
},
setOverflowX: function (b) {
var self = this;
if (this.options.overflowX !== !!b) {
@ -31304,6 +31315,11 @@ BI.GridTable = BI.inherit(BI.Widget, {
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0);
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");
items[1].left = regionSize;
items[2].top = this._getFreezeHeaderHeight();

24
dist/base.js vendored

@ -14978,12 +14978,15 @@ BI.GridView = BI.inherit(BI.Widget, {
if (items && items !== this.options.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.rowCount = o.items.length;
}
if (BI.isNumber(o.rowCount)) {
this.rowCount = o.rowCount;
} else {
this.rowCount = 0;
this.columnCount = 0;
this.rowCount = o.items.length;
}
this.container.setWidth(this.columnCount * o.estimatedColumnSize);
this.container.setHeight(this.rowCount * o.estimatedRowSize);
@ -15022,6 +15025,14 @@ BI.GridView = BI.inherit(BI.Widget, {
this.element.scrollTop(this.options.scrollTop);
},
setColumnCount: function (columnCount) {
this.options.columnCount = columnCount
},
setRowCount: function (rowCount) {
this.options.rowCount = rowCount
},
setOverflowX: function (b) {
var self = this;
if (this.options.overflowX !== !!b) {
@ -31304,6 +31315,11 @@ BI.GridTable = BI.inherit(BI.Widget, {
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0);
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");
items[1].left = regionSize;
items[2].top = this._getFreezeHeaderHeight();

24
dist/bundle.js vendored

@ -40825,12 +40825,15 @@ BI.GridView = BI.inherit(BI.Widget, {
if (items && items !== this.options.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.rowCount = o.items.length;
}
if (BI.isNumber(o.rowCount)) {
this.rowCount = o.rowCount;
} else {
this.rowCount = 0;
this.columnCount = 0;
this.rowCount = o.items.length;
}
this.container.setWidth(this.columnCount * o.estimatedColumnSize);
this.container.setHeight(this.rowCount * o.estimatedRowSize);
@ -40869,6 +40872,14 @@ BI.GridView = BI.inherit(BI.Widget, {
this.element.scrollTop(this.options.scrollTop);
},
setColumnCount: function (columnCount) {
this.options.columnCount = columnCount
},
setRowCount: function (rowCount) {
this.options.rowCount = rowCount
},
setOverflowX: function (b) {
var self = this;
if (this.options.overflowX !== !!b) {
@ -57151,6 +57162,11 @@ BI.GridTable = BI.inherit(BI.Widget, {
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0);
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");
items[1].left = regionSize;
items[2].top = this._getFreezeHeaderHeight();

52
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

19
src/base/grid/grid.js

@ -230,12 +230,15 @@ BI.GridView = BI.inherit(BI.Widget, {
if (items && items !== this.options.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.rowCount = o.items.length;
}
if (BI.isNumber(o.rowCount)) {
this.rowCount = o.rowCount;
} else {
this.rowCount = 0;
this.columnCount = 0;
this.rowCount = o.items.length;
}
this.container.setWidth(this.columnCount * o.estimatedColumnSize);
this.container.setHeight(this.rowCount * o.estimatedRowSize);
@ -274,6 +277,14 @@ BI.GridView = BI.inherit(BI.Widget, {
this.element.scrollTop(this.options.scrollTop);
},
setColumnCount: function (columnCount) {
this.options.columnCount = columnCount
},
setRowCount: function (rowCount) {
this.options.rowCount = rowCount
},
setOverflowX: function (b) {
var self = this;
if (this.options.overflowX !== !!b) {

5
src/base/table/table.grid.js

@ -355,6 +355,11 @@ BI.GridTable = BI.inherit(BI.Widget, {
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0);
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");
items[1].left = regionSize;
items[2].top = this._getFreezeHeaderHeight();

Loading…
Cancel
Save