Browse Source

整理代码

es6
guy 3 years ago
parent
commit
c10ffb3382
  1. 8
      src/core/wrapper/layout/layout.inline.js

8
src/core/wrapper/layout/layout.inline.js

@ -43,16 +43,18 @@ BI.InlineLayout = BI.inherit(BI.Layout, {
columnSize = null;
}
}
if (columnSize > 0) {
w.element.width(columnSize < 1 ? ((columnSize * 100).toFixed(1) + "%") : (columnSize / BI.pixRatio + BI.pixUnit));
}
w.element.css({
position: "relative",
"vertical-align": o.verticalAlign,
width: "auto",
"min-width": "auto",
"max-width": "none"
});
w.element.addClass("i-item");
if (columnSize > 0) {
w.element.width(columnSize < 1 ? ((columnSize * 100).toFixed(1) + "%") : (columnSize / BI.pixRatio + BI.pixUnit));
}
if (columnSize === "fill" || columnSize === "") {
var length = o.hgap;
var fillCount = 0, autoCount = 0;

Loading…
Cancel
Save