Stop skipping chromeless iframe resize onload event

in the case where the MutationObserver has already tried resizing the
iframe prior to it fully loading.
This commit is contained in:
stvn
2020-04-29 11:04:12 -07:00
parent 0f5c474f8f
commit 6c5edee219

View File

@@ -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;
}