|
|
@ -24037,7 +24037,7 @@ BI.CardLayout = BI.inherit(BI.Layout, { |
|
|
|
BI.each(items, function (i, item) { |
|
|
|
BI.each(items, function (i, item) { |
|
|
|
if (item) { |
|
|
|
if (item) { |
|
|
|
if (!self.hasWidget(item.cardName)) { |
|
|
|
if (!self.hasWidget(item.cardName)) { |
|
|
|
var w = BI.createWidget(item); |
|
|
|
var w = BI.createWidget(item, self); |
|
|
|
w.on(BI.Events.DESTROY, function () { |
|
|
|
w.on(BI.Events.DESTROY, function () { |
|
|
|
var index = BI.findIndex(o.items, function (i, tItem) { |
|
|
|
var index = BI.findIndex(o.items, function (i, tItem) { |
|
|
|
return tItem.cardName == item.cardName; |
|
|
|
return tItem.cardName == item.cardName; |
|
|
@ -24107,7 +24107,7 @@ BI.CardLayout = BI.inherit(BI.Layout, { |
|
|
|
if (this.isCardExisted(cardName)) { |
|
|
|
if (this.isCardExisted(cardName)) { |
|
|
|
throw new Error("cardName is already exist"); |
|
|
|
throw new Error("cardName is already exist"); |
|
|
|
} |
|
|
|
} |
|
|
|
var widget = BI.createWidget(cardItem); |
|
|
|
var widget = BI.createWidget(cardItem, this); |
|
|
|
widget.element.css({ |
|
|
|
widget.element.css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|
top: "0", |
|
|
|
top: "0", |
|
|
|