Skip to content

SVGs have their width and height set rendering them unresponsive #140

Closed
@lasseeee

Description

@lasseeee

TL;DR: Setting the width and height constraints directly on a vector image defeats the purpose of being an svg in responsive webdesign.

The SVGs being created have their height and width set, rendering them unable to be natively responsive in browsers. I tried setting height and width to null but to no avail. Would it be a solution to remove the width and height from the generated SVG from ->toSvg() to make them work as SVGs were intended? If constraints are needed it's never a problem to create a container for the SVG, but removing the constraints from the SVG is impossible. I'd be happy to pull request the removal of the two attributes if this is at all an interesting change.

image

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