Problem/Motivation

The width and height has a fallback on empty values. But a value of 0 should also be handled as 100% and saved as empty.
Also the formatter should display the fallback behavior.

Steps to reproduce

Enter 0 as value for width and height
See that the video uses the 0 values instead of 100%
The description in the formatter displays empty and 0 values

Proposed resolution

Do not save 0 values but make them empty.
Show the correct description in the formatter.

Remaining tasks

Create a patch

User interface changes

Correct display of description in formatter.

API changes

None.

Data model changes

None.

Comments

tim-diels created an issue. See original summary.

tim-diels’s picture

Status: Active » Needs review
StatusFileSize
new3.33 KB

When entering 0 as value, the value will be reset to empty and video will be displayed 100%.

  • pjbaert committed 34d26d2 on 8.x-2.x authored by tim-diels
    Issue #3227502 by tim-diels: Width/height fallback where value is 0 and...
pjbaert’s picture

Status: Needs review » Fixed

This patch was exactly what I expected! Very nice work!
This was pushed to 8.x-2.x

Status: Fixed » Closed (fixed)

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