From b6f8e670c876c2b66e6e9ac7f19afd7b8f2c3a15 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 27 Aug 2020 21:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/adapt/inline.center.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/wrapper/layout/adapt/inline.center.js b/src/core/wrapper/layout/adapt/inline.center.js index 0dec3583b..0ac6c5389 100644 --- a/src/core/wrapper/layout/adapt/inline.center.js +++ b/src/core/wrapper/layout/adapt/inline.center.js @@ -23,12 +23,13 @@ BI.InlineCenterAdaptLayout = BI.inherit(BI.Layout, { }, render: function () { + var o = this.options; BI.InlineCenterAdaptLayout.superclass.render.apply(this, arguments); this.element.css({ whiteSpace: "nowrap", textAlign: o.horizontalAlign }); - this.populate(this.options.items); + this.populate(o.items); }, _addElement: function (i, item, length) {