From f8725094589e7fc588a5f2cd04afa9dde89db71e Mon Sep 17 00:00:00 2001 From: Young Date: Wed, 29 May 2019 17:05:17 +0800 Subject: [PATCH] =?UTF-8?q?BI-45290=20fix:=20=E4=BD=BF=E7=94=A8dom=20node?= =?UTF-8?q?=E7=9A=84contains=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index 66b15a658b..0930238842 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -307,9 +307,8 @@ BI.Layout = BI.inherit(BI.Widget, { o.items.push(item); added.push(w); var node = w.element[0]; - var childNodes = wrapper[0].childNodes; // BI-45290 wrapper中已包含的node不需要再次添加(添加可能导致内部滚动条位置重置) - if (!BI.contains(childNodes, node)) { + if (!wrapper[0].contains(node)) { fragment.appendChild(node); } });