diff --git a/src/core/platform/web/detectElementResize.js b/src/core/platform/web/detectElementResize.js index 0ca8672071..b34d21771b 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";