Browse Source

BI-10727 布局

master
Young 7 years ago
parent
commit
9c9f3bf695
  1. 14
      bi/widget.js
  2. 14
      dist/bundle.js
  3. 14
      dist/widget.js
  4. 14
      src/widget/arrangement/arrangement.js

14
bi/widget.js

@ -1045,7 +1045,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
element: this.container
});
}
this.wrapper.populate(items);
this.wrapper.addItems(items);
},
getClientWidth: function () {
@ -1778,7 +1778,17 @@ BI.Arrangement = BI.inherit(BI.Widget, {
},
populate: function (items) {
this.regions = {};
// this.regions = {};
var self = this;
BI.each(this.regions, function (name, region) {
var exist = BI.some(items, function (i, item) {
return item.el.attr("id") === name;
});
if (!exist) {
self.regions[name].el.setVisible(false);
}
delete self.regions[name];
});
this._populate(items);
this._renderRegion();
}

14
dist/bundle.js vendored

@ -76087,7 +76087,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
element: this.container
});
}
this.wrapper.populate(items);
this.wrapper.addItems(items);
},
getClientWidth: function () {
@ -76820,7 +76820,17 @@ BI.Arrangement = BI.inherit(BI.Widget, {
},
populate: function (items) {
this.regions = {};
// this.regions = {};
var self = this;
BI.each(this.regions, function (name, region) {
var exist = BI.some(items, function (i, item) {
return item.el.attr("id") === name;
});
if (!exist) {
self.regions[name].el.setVisible(false);
}
delete self.regions[name];
});
this._populate(items);
this._renderRegion();
}

14
dist/widget.js vendored

@ -1045,7 +1045,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
element: this.container
});
}
this.wrapper.populate(items);
this.wrapper.addItems(items);
},
getClientWidth: function () {
@ -1778,7 +1778,17 @@ BI.Arrangement = BI.inherit(BI.Widget, {
},
populate: function (items) {
this.regions = {};
// this.regions = {};
var self = this;
BI.each(this.regions, function (name, region) {
var exist = BI.some(items, function (i, item) {
return item.el.attr("id") === name;
});
if (!exist) {
self.regions[name].el.setVisible(false);
}
delete self.regions[name];
});
this._populate(items);
this._renderRegion();
}

14
src/widget/arrangement/arrangement.js

@ -298,7 +298,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
element: this.container
});
}
this.wrapper.populate(items);
this.wrapper.addItems(items);
},
getClientWidth: function () {
@ -1031,7 +1031,17 @@ BI.Arrangement = BI.inherit(BI.Widget, {
},
populate: function (items) {
this.regions = {};
// this.regions = {};
var self = this;
BI.each(this.regions, function (name, region) {
var exist = BI.some(items, function (i, item) {
return item.el.attr("id") === name;
});
if (!exist) {
self.regions[name].el.setVisible(false);
}
delete self.regions[name];
});
this._populate(items);
this._renderRegion();
}

Loading…
Cancel
Save