From f0270a207f68be501ff777b5b7ddf2f901163b93 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 28 Mar 2021 15:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/layout.inline.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/wrapper/layout/layout.inline.js b/src/core/wrapper/layout/layout.inline.js index 24078ace2..ea4c6dc5a 100644 --- a/src/core/wrapper/layout/layout.inline.js +++ b/src/core/wrapper/layout/layout.inline.js @@ -52,6 +52,9 @@ BI.InlineLayout = BI.inherit(BI.Layout, { right += o.hgap + o.lgap + o.rgap + o.columnSize[k]; } w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")"); + if (o.horizontalAlign === BI.HorizontalAlign.Stretch) { + w.element.width(0); + } } if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { w.element.css({