Browse Source

优化一下

es6
guy 3 years ago
parent
commit
41cb7606fe
  1. 6
      src/core/wrapper/layout/fill/float.fill.horizontal.js

6
src/core/wrapper/layout/fill/float.fill.horizontal.js

@ -43,7 +43,7 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, {
w.element.addClass("h-float-fill-item"); w.element.addClass("h-float-fill-item");
w.element.css({ w.element.css({
float: "left", float: "left",
position: "relative", position: "relative"
}); });
}); });
BI.backAny(items, function (i, item) { BI.backAny(items, function (i, item) {
@ -59,7 +59,7 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, {
w.element.addClass("h-float-fill-item"); w.element.addClass("h-float-fill-item");
w.element.css({ w.element.css({
float: "right", float: "right",
position: "relative", position: "relative"
}); });
}); });
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
@ -68,7 +68,7 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, {
var w = BI._lazyCreateWidget(item); var w = BI._lazyCreateWidget(item);
self.addWidget(self._getChildName(rank++), w); self.addWidget(self._getChildName(rank++), w);
w.element.addClass("h-float-fill-item").css({ w.element.addClass("h-float-fill-item").css({
position: "relative", position: "relative"
}); });
} }
}); });

Loading…
Cancel
Save