From c39319fc0f0129dfdd18956cfafdc60157247717 Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 16 Sep 2020 14:11:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BI.HorizontalAlign.Center=E4=B9=9F?= =?UTF-8?q?=E5=8A=A0=E4=B8=8Aflex-shrink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/flex/flex.horizontal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wrapper/layout/flex/flex.horizontal.js b/src/core/wrapper/layout/flex/flex.horizontal.js index fc9cad5d8..549778110 100644 --- a/src/core/wrapper/layout/flex/flex.horizontal.js +++ b/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" });