From ae8e42cbcdcf925f00c0ec6aca07d528ba295799 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 28 Aug 2020 14:15:40 +0800 Subject: [PATCH] bugfix --- src/core/platform/web/config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 397f3ac21..9626b44f5 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -40,6 +40,9 @@ BI.prepares.push(function () { if (!isIE && supportFlex) { return BI.extend(ob, {type: "bi.flex_center_adapt"}); } + if (ob.horizontalAlign === BI.HorizontalAlign.Right) { + return BI.extend(ob, {type: "bi.inline_center_adapt", items: ob.items && ob.items.reverse()}); + } return BI.extend(ob, {type: "bi.inline_center_adapt"}); } return ob; @@ -51,6 +54,9 @@ BI.prepares.push(function () { if (!isIE && supportFlex) { return BI.extend(ob, {type: "bi.flex_vertical_center_adapt"}); } + if (ob.horizontalAlign === BI.HorizontalAlign.Right) { + return BI.extend(ob, {type: "bi.inline_center_adapt", items: ob.items && ob.items.reverse()}); + } return BI.extend(ob, {type: "bi.inline_vertical_adapt"}); } return ob;