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;