Browse Source

优化布局

master
guy 4 years ago
parent
commit
f0270a207f
  1. 3
      src/core/wrapper/layout/layout.inline.js

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

@ -52,6 +52,9 @@ BI.InlineLayout = BI.inherit(BI.Layout, {
right += o.hgap + o.lgap + o.rgap + o.columnSize[k]; right += o.hgap + o.lgap + o.rgap + o.columnSize[k];
} }
w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")"); w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
if (o.horizontalAlign === BI.HorizontalAlign.Stretch) {
w.element.width(0);
}
} }
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
w.element.css({ w.element.css({

Loading…
Cancel
Save