|
|
@ -23,9 +23,6 @@ BI.HTapeLayout = BI.inherit(BI.Layout, { |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resize: function () { |
|
|
|
|
|
|
|
this.stroke(this.options.items); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addItem: function (item) { |
|
|
|
addItem: function (item) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
throw new Error("不能添加子组件"); |
|
|
|
throw new Error("不能添加子组件"); |
|
|
@ -122,12 +119,8 @@ BI.HTapeLayout = BI.inherit(BI.Layout, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
update: function () { |
|
|
|
shouldUpdate: function () { |
|
|
|
var updated; |
|
|
|
return false; |
|
|
|
BI.each(this._children, function (i, child) { |
|
|
|
|
|
|
|
updated = child.update() || updated; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return updated; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
@ -162,10 +155,6 @@ BI.VTapeLayout = BI.inherit(BI.Layout, { |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resize: function () { |
|
|
|
|
|
|
|
this.stroke(this.options.items); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addItem: function (item) { |
|
|
|
addItem: function (item) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
throw new Error("不能添加子组件"); |
|
|
|
throw new Error("不能添加子组件"); |
|
|
@ -262,7 +251,8 @@ BI.VTapeLayout = BI.inherit(BI.Layout, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
update: function () { |
|
|
|
shouldUpdate: function () { |
|
|
|
|
|
|
|
return false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|