From 1e8110e930508fd09da979b9a3b368716bc22049 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 28 Aug 2020 14:20:49 +0800 Subject: [PATCH] bugfix --- src/core/platform/web/config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 9626b44f5f..0684e076f7 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -29,7 +29,10 @@ BI.prepares.push(function () { // 解决使用inline_vertical_adapt的顺序问题 // 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式 if (ob.horizontalAlign === BI.HorizontalAlign.Right) { - return BI.extend(ob, {type: "bi.inline_vertical_adapt", items: ob.items && ob.items.reverse()}); + return BI.extend({verticalAlign: BI.VerticalAlign.Top}, ob, { + type: "bi.inline_vertical_adapt", + items: ob.items && ob.items.reverse() + }); } return BI.extend(ob, {type: "bi.table_adapt"}); }); @@ -55,7 +58,7 @@ BI.prepares.push(function () { 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", items: ob.items && ob.items.reverse()}); } return BI.extend(ob, {type: "bi.inline_vertical_adapt"}); }