|
|
@ -19,9 +19,6 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, { |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resize: function () { |
|
|
|
|
|
|
|
// console.log("填充布局不需要resize");
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addItem: function (item) { |
|
|
|
addItem: function (item) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
throw new Error("不能添加子组件"); |
|
|
|
throw new Error("不能添加子组件"); |
|
|
@ -79,8 +76,12 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, { |
|
|
|
} |
|
|
|
} |
|
|
|
var top = o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0), |
|
|
|
var top = o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0), |
|
|
|
bottom = o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0); |
|
|
|
bottom = o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0); |
|
|
|
|
|
|
|
if (BI.isNull(item.height)) { |
|
|
|
|
|
|
|
w.element.css({ |
|
|
|
|
|
|
|
height: "calc(100% - " + ((top + bottom) / BI.pixRatio + BI.pixUnit) + ")" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
height: "calc(100% - " + ((top + bottom) / BI.pixRatio + BI.pixUnit) + ")", |
|
|
|
|
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|
return w; |
|
|
|
return w; |
|
|
@ -123,6 +124,10 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resize: function () { |
|
|
|
|
|
|
|
// console.log("填充布局不需要resize");
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
update: function (opt) { |
|
|
|
update: function (opt) { |
|
|
|
return this.forceUpdate(opt); |
|
|
|
return this.forceUpdate(opt); |
|
|
|
}, |
|
|
|
}, |
|
|
|