Changeset 37745
- Timestamp:
- 06/18/2016 09:59:54 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-embed-template.js
r36637 r37745 138 138 */ 139 139 sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) ); 140 141 // Send the document's height again after the featured image has been loaded. 142 document.querySelector( '.wp-embed-featured-image img' ).addEventListener( 'load', function() { 143 sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) ); 144 } ); 140 145 141 146 /**
Note: See TracChangeset
for help on using the changeset viewer.