Browse Source

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

master
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({ w.element.css({
position: "relative" 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({ w.element.css({
"flex-shrink": "0" "flex-shrink": "0"
}); });

Loading…
Cancel
Save