|
|
|
@ -20,7 +20,7 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Top){ |
|
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Top) { |
|
|
|
|
return { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
ref: function (_ref) { |
|
|
|
@ -29,12 +29,16 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
items: this._formatItems(o.items), |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
scrollx: o.scrollx, |
|
|
|
|
scrolly: o.scrolly, |
|
|
|
|
scrollable: o.scrollable |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
return { |
|
|
|
|
type: "bi.inline", |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.layout = _ref; |
|
|
|
@ -43,9 +47,13 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
vgap: o.vgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
horizontalAlign: o.horizontalAlign, |
|
|
|
|
verticalAlign: o.verticalAlign |
|
|
|
|
verticalAlign: o.verticalAlign, |
|
|
|
|
scrollx: o.scrollx, |
|
|
|
|
scrolly: o.scrolly, |
|
|
|
|
scrollable: o.scrollable |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -53,6 +61,7 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
var o = this.options; |
|
|
|
|
return BI.map(items, function (i, item) { |
|
|
|
|
return { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.inline_horizontal_adapt", |
|
|
|
|
horizontalAlign: o.horizontalAlign, |
|
|
|
|
items: [item], |
|
|
|
@ -60,6 +69,7 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|