Browse Source

fix: BI.HorizontalAlign.Center也加上flex-shrink

es6
iapyang 4 years ago
parent
commit
c39319fc0f
  1. 2
      src/core/wrapper/layout/flex/flex.horizontal.js

2
src/core/wrapper/layout/flex/flex.horizontal.js

@ -34,7 +34,7 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, {
w.element.css({
position: "relative"
});
if (o.horizontalAlign === BI.HorizontalAlign.Left || o.horizontalAlign === BI.HorizontalAlign.Right) {
if (BI.contains([BI.HorizontalAlign.Left, BI.HorizontalAlign.Right, BI.HorizontalAlign.Center], o.horizontalAlign)) {
w.element.css({
"flex-shrink": "0"
});

Loading…
Cancel
Save