Browse Source

无JIRA 自动填充布局,flex fill 特性的补充

es6
Dailer 3 years ago
parent
commit
9940c88968
  1. 1
      src/core/wrapper/layout/flex/flex.horizontal.js
  2. 1
      src/core/wrapper/layout/flex/flex.vertical.js

1
src/core/wrapper/layout/flex/flex.horizontal.js

@ -81,6 +81,7 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, {
} }
if (columnSize === "fill") { if (columnSize === "fill") {
w.element.addClass("f-f"); w.element.addClass("f-f");
w.element.css({ minWidth: 0 });
} }
w.element.addClass("c-e"); w.element.addClass("c-e");
if (i === 0) { if (i === 0) {

1
src/core/wrapper/layout/flex/flex.vertical.js

@ -80,6 +80,7 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, {
} }
if (rowSize === "fill") { if (rowSize === "fill") {
w.element.addClass("f-f"); w.element.addClass("f-f");
w.element.css({ minHeight: 0 });
} }
w.element.addClass("c-e"); w.element.addClass("c-e");
if (i === 0) { if (i === 0) {

Loading…
Cancel
Save