Skip to content
Snippets Groups Projects
Commit d5ed3fcc authored by stvn's avatar stvn
Browse files

Merge PR #23846 fix/learn-mfe/resize-iframe

* Commits:
  Stop skipping chromeless iframe resize onload event
parents cb44075a 6c5edee2
No related branches found
Tags release-2021-02-08-04.28
No related merge requests found
......@@ -137,7 +137,7 @@ ${HTML(fragment.foot_html())}
var newHeight = contentElement.offsetHeight;
var newWidth = contentElement.offsetWidth;
if (newWidth === lastWidth && newHeight === lastHeight) {
if (eventType !== 'load' && newWidth === lastWidth && newHeight === lastHeight) {
console.log('MFE', 'Ignore resize', newWidth, newHeight, eventType);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment