Browse Source

bugfix

master
guy 4 years ago
parent
commit
7c77b24904
  1. 5
      src/core/wrapper/layout/adapt/inline.center.js
  2. 4
      src/core/wrapper/layout/adapt/inline.vertical.js

5
src/core/wrapper/layout/adapt/inline.center.js

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

4
src/core/wrapper/layout/adapt/inline.vertical.js

@ -12,13 +12,13 @@ BI.InlineVerticalAdaptLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-inline-vertical-adapt-layout",
horizontalAlign: BI.HorizontalAlign.Left,
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0,
horizontalAlign: BI.HorizontalAlign.Left
bgap: 0
});
},

Loading…
Cancel
Save