Browse Source

BI-116192 动态列表不可见状态下resize问题

es6
windy 2 years ago
parent
commit
accde7ee70
  1. 2
      src/core/platform/web/detectElementResize.js

2
src/core/platform/web/detectElementResize.js

@ -553,7 +553,7 @@ var ResizeObserver = window.ResizeObserver || ResizeObserverPolyfill.ResizeObser
if (!element.__resizeObserver__) {
var resizeObserver = new ResizeObserver(function () {
element.__resizeListeners__.forEach(function (listener) {
listener();
BI.$(element).is(":visible") && listener();
});
});
resizeObserver.observe(element);

Loading…
Cancel
Save