You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: