Browse Source

Pull request #1508: 无JIRA任务 BI.HorizontalAlign.Center也加上flex-shrink

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit 'c39319fc0f0129dfdd18956cfafdc60157247717':
  fix: BI.HorizontalAlign.Center也加上flex-shrink
es6
guy 4 years ago
parent
commit
f41dddbcbf
  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