Currently the file_entity field formatter requires that both the width and height be both provided, otherwise they're ignored. This prevents e.g. assigning a width of 100% so that the video is scaled to fit the available space.

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new993 bytes

A quick patch to provide the change requested.

damienmckenna’s picture

StatusFileSize
new1.49 KB

Had to update the theming function too.

dave reid’s picture

Title: Allow width and height to be used independently in field formatter » Allow width and height to be used independently in video field formatter
mglaman’s picture

Status: Needs review » Reviewed & tested by the community

Applied clean, let me set width and allow browser to figure out proper height.

  • Dave Reid committed 1e037ad on 7.x-2.x
    Issue #2289587 by DamienMcKenna: Allow width and height to be used...
dave reid’s picture

Status: Reviewed & tested by the community » Fixed

Committed #2 to 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.