[wp-trac] [WordPress Trac] #35657: Image height calculation not always available on body.load

WordPress Trac noreply at wordpress.org
Sat Jun 18 09:59:56 UTC 2016


#35657: Image height calculation not always available on body.load
------------------------------+-------------------------
 Reporter:  jipmoors          |       Owner:  swissspidy
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.6
Component:  Embeds            |     Version:  4.4
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-------------------------
Changes (by swissspidy):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37745"]:
 {{{
 #!CommitTicketReference repository="" revision="37745"
 Embeds: Improve height calculation for slow loading images.

 When the featured image takes longer to load, the browser might not know
 its exact dimensions yet and therefore sends an incorrect document height
 to the embedding site.

 By sending the document's height again after the featured image has been
 loaded, we ensure that the iframe doesn't get cut off.

 Fixes #35657.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35657#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list