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

Stop skipping chromeless iframe resize onload event

in the case where the MutationObserver has already tried resizing the
iframe prior to it fully loading.
parent 0f5c474f
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