|
|
|
@ -79583,12 +79583,21 @@ BI.Arrangement = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_renderRegion: function () { |
|
|
|
|
var self = this; |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this.container, |
|
|
|
|
items: BI.toArray(this.regions) |
|
|
|
|
var items = BI.toArray(this.regions); |
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
|
if (BI.isNotNull(item.el)) { |
|
|
|
|
item.el.options.key = item.id; |
|
|
|
|
} else { |
|
|
|
|
item.key = item.id; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
if (BI.isNull(this.wrapper)) { |
|
|
|
|
this.wrapper = BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this.container |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
this.wrapper.populate(items); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getClientWidth: function () { |
|
|
|
@ -79880,6 +79889,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return out; |
|
|
|
|
|
|
|
|
|
function getStatics(layout) { |
|
|
|
|
return BI.filter(layout, function (i, l) { |
|
|
|
|
return l._static; |
|
|
|
@ -80324,11 +80334,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
var self = this; |
|
|
|
|
BI.each(this.regions, function (name, region) { |
|
|
|
|
self.regions[name].el.setVisible(false); |
|
|
|
|
delete self.regions[name]; |
|
|
|
|
}); |
|
|
|
|
this.regions = {}; |
|
|
|
|
this._populate(items); |
|
|
|
|
this._renderRegion(); |
|
|
|
|
} |
|
|
|
|