File tree Expand file tree Collapse file tree
common/templates/xblock_v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 455455 // it will report the height of its contents to the parent window when the
456456 // document loads, window resizes, or DOM mutates.
457457 if ( window !== window . parent ) {
458- var lastHeight = window . parent [ 0 ] . offsetHeight ;
459- var lastWidth = window . parent [ 0 ] . offsetWidth ;
460-
461458 function dispatchResizeMessage ( event ) {
462459 // Note: event is actually an Array of MutationRecord objects when fired from the MutationObserver
463460 var newHeight = rootNode . scrollHeight ;
472469 }
473470 } , document . referrer
474471 ) ;
475-
476- lastHeight = newHeight ;
477- lastWidth = newWidth ;
478-
479472 // Within the authoring microfrontend the iframe resizes to match the
480473 // height of this document and it should never scroll. It does scroll
481474 // ocassionally when javascript is used to focus elements on the page
You can’t perform that action at this time.
0 commit comments