From d947e8806c5b37497bf4a0c5cf250e402470939a Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 30 Jul 2019 18:37:39 +0800 Subject: [PATCH] =?UTF-8?q?BI-48784=20fix:=20resize=E7=AB=8B=E5=8D=B3?= =?UTF-8?q?=E6=89=A7=E8=A1=8C?= 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 572ccf7de..0ca867207 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); - BI.defer(fn); + fn(); } else { if (!element.__resizeTriggers__) { if (getComputedStyle(element).position === "static") element.style.position = "relative";