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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user