From 3af41298ce63d97a1c66c6ff464fbd5ed6dc0ac5 Mon Sep 17 00:00:00 2001 From: git Date: Fri, 30 Jul 2021 00:50:18 +0800 Subject: [PATCH] add --- src/core/wrapper/layout/fill/float.fill.horizontal.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/wrapper/layout/fill/float.fill.horizontal.js b/src/core/wrapper/layout/fill/float.fill.horizontal.js index 6235e6505..f68e82413 100644 --- a/src/core/wrapper/layout/fill/float.fill.horizontal.js +++ b/src/core/wrapper/layout/fill/float.fill.horizontal.js @@ -42,7 +42,8 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, { self.addWidget(self._getChildName(rank++), w); w.element.addClass("h-float-fill-item"); w.element.css({ - float: "left" + float: "left", + position: "relative", }); }); BI.backAny(items, function (i, item) { @@ -57,7 +58,8 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, { self.addWidget(self._getChildName(rank++), w); w.element.addClass("h-float-fill-item"); w.element.css({ - float: "right" + float: "right", + position: "relative", }); }); BI.each(items, function (i, item) { @@ -65,7 +67,9 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, { if (columnSize === "fill") { var w = BI._lazyCreateWidget(item); self.addWidget(self._getChildName(rank++), w); - w.element.addClass("h-float-fill-item"); + w.element.addClass("h-float-fill-item").css({ + position: "relative", + }); } }); },