Skip to content

Image size does not respect specified units #330

@shmsula

Description

@shmsula

Description: When changing the image size units to percent, the image and the table cell do not adjust accordingly and remain in pixels.

Steps to reproduce:

Open https://grapesjs.com/demo-mjml.html
Select the image with car sciolino-paris-bw.jpg
Change the units to percent, and the value to 50
Observe that the td size will be set to 50px and the image to 50 without any units, instead of 50% of the parent element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions