Browse Source

Pull request #1476: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'e89a5b5b0982d5bf7afe638f2538d6ceaea52c47':
  bugfix
master
guy 4 years ago
parent
commit
9d8c0576d3
  1. 7
      src/core/platform/web/config.js

7
src/core/platform/web/config.js

@ -29,7 +29,10 @@ BI.prepares.push(function () {
// 解决使用inline_vertical_adapt的顺序问题 // 解决使用inline_vertical_adapt的顺序问题
// 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式 // 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式
if (ob.horizontalAlign === BI.HorizontalAlign.Right) { 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"}); 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"}); return BI.extend(ob, {type: "bi.flex_vertical_center_adapt"});
} }
if (ob.horizontalAlign === BI.HorizontalAlign.Right) { 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"}); return BI.extend(ob, {type: "bi.inline_vertical_adapt"});
} }

Loading…
Cancel
Save