WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#53573 new defect (bug)

Non-WP Blog Embeds are being cropped.

Reported by: mdwolinski Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.7.2
Component: Embeds Keywords: needs-testing
Focuses: ui, css Cc:

Description

When adding an embed for a non-WP blog post, for example, a NY Times story, the enclosing iFrame is not getting a default height set to it, which is causing the embed to crop off most of the information.

Issue seems to be the iframe generated is not expanding to include all of the content from the embed. If I manually set height: 400px; on the iframe, for example, it shows the content. However, the bottom is still cut off (seems the height of the embed in this case is 457px). The ma.tt embed in the screenshot has a height as an attribute of the iframe, the NYTimes does not.

@mamaduka tested this issue in both the Block Editor and Classic Editor with similar results. See comment here: https://github.com/WordPress/gutenberg/issues/28490

Attachments (2)

121894941-b58a7e80-cced-11eb-8b48-1e91078eec9a.png (344.1 KB) - added by mdwolinski 5 months ago.
Current result of adding NY Times post Embed
121895192-f2567580-cced-11eb-9ab6-2268fc13e62e.png (1.3 MB) - added by mdwolinski 5 months ago.
Embed with iFrame height manually adjusted.

Download all attachments as: .zip

Change History (3)

@mdwolinski
5 months ago

Current result of adding NY Times post Embed

@mdwolinski
5 months ago

Embed with iFrame height manually adjusted.

#1 @desrosj
5 months ago

  • Component changed from Editor to Embeds
  • Keywords needs-testing added

I'm able to reproduce the issue, but only for the NYTimes. I'm not sure why the height is being omitted, especially since it's being included in the REST API response.

Note: See TracTickets for help on using tickets.