diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 6cdaabeeb..52771f68b 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -113,6 +113,13 @@ BI.prepares.push(function () { } } }); + BI.Plugin.configWidget("bi.flex_vertical", function (ob) { + if (ob.scrollable === true || ob.scrollx === true) { + if (ob.hgap > 0 || ob.rgap > 0) {// flex中最后一个margin-right不生效 + return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"}); + } + } + }); BI.Plugin.configWidget("bi.radio", function (ob) { if (BI.isIE() && BI.getIEVersion() <= 9) { diff --git a/src/less/core/wrapper/flex.wrapper.vertical.less b/src/less/core/wrapper/flex.wrapper.vertical.less index a01580a8d..67f1a460d 100644 --- a/src/less/core/wrapper/flex.wrapper.vertical.less +++ b/src/less/core/wrapper/flex.wrapper.vertical.less @@ -64,7 +64,7 @@ -o-flex-wrap: nowrap; flex-wrap: nowrap; - min-width: 100%; + //min-width: 100%; &.h-center { ///* 09版 */