|
|
@ -12,6 +12,7 @@ BI.InlineCenterAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
props: function () { |
|
|
|
props: function () { |
|
|
|
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), { |
|
|
|
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), { |
|
|
|
baseCls: "bi-inline-center-adapt-layout", |
|
|
|
baseCls: "bi-inline-center-adapt-layout", |
|
|
|
|
|
|
|
horizontalAlign: BI.HorizontalAlign.Center, |
|
|
|
hgap: 0, |
|
|
|
hgap: 0, |
|
|
|
vgap: 0, |
|
|
|
vgap: 0, |
|
|
|
lgap: 0, |
|
|
|
lgap: 0, |
|
|
@ -25,7 +26,7 @@ BI.InlineCenterAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
BI.InlineCenterAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.InlineCenterAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
this.element.css({ |
|
|
|
this.element.css({ |
|
|
|
whiteSpace: "nowrap", |
|
|
|
whiteSpace: "nowrap", |
|
|
|
textAlign: "center" |
|
|
|
textAlign: o.horizontalAlign |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|