From f2388878a68b46d70f50cd3ab731ee77dfb68380 Mon Sep 17 00:00:00 2001 From: dailer Date: Thu, 18 Jul 2019 10:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=9C=A8render=20=E4=B8=AD=E8=B0=83=E7=94=A8=20Resize?= =?UTF-8?q?Detector=20=E7=9A=84=E5=86=99=E6=B3=95,=E5=9B=A0=E6=AD=A4?= =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E6=89=A7=E8=A1=8C=E5=9B=9E=E8=B0=83=E5=9B=9E?= =?UTF-8?q?=E5=BC=95=E5=8F=91npe?= 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..572ccf7de 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.defer(fn); } else { if (!element.__resizeTriggers__) { if (getComputedStyle(element).position === "static") element.style.position = "relative";