guy 8 years ago
parent
commit
f7b703a943
  1. 18
      bi/case.js
  2. 2
      bi/chart.js
  3. 18
      docs/case.js
  4. 2
      docs/chart.js
  5. 2
      src/addons/chart/chart.js

18
bi/case.js

@ -9118,18 +9118,18 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
var vDeep = this._getVDeep(); var vDeep = this._getVDeep();
var header = this._createHeader(vDeep); var header = this._createHeader(vDeep);
var data = this._formatItems(o.items, header, deep); var data = this._formatItems(o.items, header, deep);
// var columnSize = o.columnSize.slice(); var columnSize = o.columnSize.slice();
// var minColumnSize = o.minColumnSize.slice(); var minColumnSize = o.minColumnSize.slice();
// var maxColumnSize = o.maxColumnSize.slice(); var maxColumnSize = o.maxColumnSize.slice();
// BI.removeAt(columnSize, data.deletedCols); BI.removeAt(columnSize, data.deletedCols);
// BI.removeAt(minColumnSize, data.deletedCols); BI.removeAt(minColumnSize, data.deletedCols);
// BI.removeAt(maxColumnSize, data.deletedCols); BI.removeAt(maxColumnSize, data.deletedCols);
return { return {
header: data.header, header: data.header,
items: data.items, items: data.items,
columnSize: this._formatColumnSize(o.columnSize, deep), columnSize: this._formatColumnSize(columnSize, deep),
minColumnSize: this._formatColumns(o.minColumnSize, deep), minColumnSize: this._formatColumns(minColumnSize, deep),
maxColumnSize: this._formatColumns(o.maxColumnSize, deep), maxColumnSize: this._formatColumns(maxColumnSize, deep),
freezeCols: this._formatFreezeCols() freezeCols: this._formatFreezeCols()
} }
}, },

2
bi/chart.js

@ -19,7 +19,9 @@ BI.Chart = BI.inherit(BI.Pane, {
this.vanCharts = VanCharts.init(self.element[0]); this.vanCharts = VanCharts.init(self.element[0]);
this._resizer = BI.debounce(function () { this._resizer = BI.debounce(function () {
if (self.element.width() > 0 && self.element.height() > 0) {
self.vanCharts.resize(); self.vanCharts.resize();
}
}, 30); }, 30);
BI.ResizeDetector.addResizeListener(this, function (e) { BI.ResizeDetector.addResizeListener(this, function (e) {
self._resizer(); self._resizer();

18
docs/case.js

@ -9118,18 +9118,18 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
var vDeep = this._getVDeep(); var vDeep = this._getVDeep();
var header = this._createHeader(vDeep); var header = this._createHeader(vDeep);
var data = this._formatItems(o.items, header, deep); var data = this._formatItems(o.items, header, deep);
// var columnSize = o.columnSize.slice(); var columnSize = o.columnSize.slice();
// var minColumnSize = o.minColumnSize.slice(); var minColumnSize = o.minColumnSize.slice();
// var maxColumnSize = o.maxColumnSize.slice(); var maxColumnSize = o.maxColumnSize.slice();
// BI.removeAt(columnSize, data.deletedCols); BI.removeAt(columnSize, data.deletedCols);
// BI.removeAt(minColumnSize, data.deletedCols); BI.removeAt(minColumnSize, data.deletedCols);
// BI.removeAt(maxColumnSize, data.deletedCols); BI.removeAt(maxColumnSize, data.deletedCols);
return { return {
header: data.header, header: data.header,
items: data.items, items: data.items,
columnSize: this._formatColumnSize(o.columnSize, deep), columnSize: this._formatColumnSize(columnSize, deep),
minColumnSize: this._formatColumns(o.minColumnSize, deep), minColumnSize: this._formatColumns(minColumnSize, deep),
maxColumnSize: this._formatColumns(o.maxColumnSize, deep), maxColumnSize: this._formatColumns(maxColumnSize, deep),
freezeCols: this._formatFreezeCols() freezeCols: this._formatFreezeCols()
} }
}, },

2
docs/chart.js

@ -19,7 +19,9 @@ BI.Chart = BI.inherit(BI.Pane, {
this.vanCharts = VanCharts.init(self.element[0]); this.vanCharts = VanCharts.init(self.element[0]);
this._resizer = BI.debounce(function () { this._resizer = BI.debounce(function () {
if (self.element.width() > 0 && self.element.height() > 0) {
self.vanCharts.resize(); self.vanCharts.resize();
}
}, 30); }, 30);
BI.ResizeDetector.addResizeListener(this, function (e) { BI.ResizeDetector.addResizeListener(this, function (e) {
self._resizer(); self._resizer();

2
src/addons/chart/chart.js

@ -19,7 +19,9 @@ BI.Chart = BI.inherit(BI.Pane, {
this.vanCharts = VanCharts.init(self.element[0]); this.vanCharts = VanCharts.init(self.element[0]);
this._resizer = BI.debounce(function () { this._resizer = BI.debounce(function () {
if (self.element.width() > 0 && self.element.height() > 0) {
self.vanCharts.resize(); self.vanCharts.resize();
}
}, 30); }, 30);
BI.ResizeDetector.addResizeListener(this, function (e) { BI.ResizeDetector.addResizeListener(this, function (e) {
self._resizer(); self._resizer();

Loading…
Cancel
Save