Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserveAspectRatio="none" #72

Open
achimmihca opened this issue Aug 14, 2022 · 2 comments
Open

preserveAspectRatio="none" #72

achimmihca opened this issue Aug 14, 2022 · 2 comments

Comments

@achimmihca
Copy link

Firefox only stretches an SVG freely if it has preserveAspectRatio="none" set on the root svg element (see StackOverflow)

Please add this property to the generated SVG code.

@anup-a
Copy link
Owner

anup-a commented Aug 15, 2022

Hi @achimmihca, Did you mean this https://codepen.io/anup-a/pen/OJvBebv ?

If yes, then this behaviour is consistent across browsers. But yeah I guess it would be helpful to include preserveAspectRatio="none".

@achimmihca
Copy link
Author

Yes, this is what I mean. I expected the SVG to change size (i.e., stretch freely) according to the div I put it in. This can be achieved via preserveAspectRatio="none"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants