From d3efa9dfad28f1131bb77d6d3dc6f0813eb9f2e7 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 31 Jul 2019 16:15:31 +0800 Subject: [PATCH] =?UTF-8?q?BI-48784=20fix:=20=E8=B7=9Fchrome=E8=A1=A8?= =?UTF-8?q?=E7=8E=B0=E4=B8=80=E8=87=B4=EF=BC=8C=E9=9C=80=E8=A6=81nextTick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/detectElementResize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/platform/web/detectElementResize.js b/src/core/platform/web/detectElementResize.js index 0ca867207..b34d21771 100644 --- a/src/core/platform/web/detectElementResize.js +++ b/src/core/platform/web/detectElementResize.js @@ -114,7 +114,7 @@ var addResizeListener = function (element, fn) { if (attachEvent) { element.attachEvent("onresize", fn); - fn(); + BI.nextTick(fn); } else { if (!element.__resizeTriggers__) { if (getComputedStyle(element).position === "static") element.style.position = "relative";