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

The svg property "preserveAspectRatio" does not work. #434

Open
alcaidio opened this issue Nov 30, 2022 · 0 comments
Open

The svg property "preserveAspectRatio" does not work. #434

alcaidio opened this issue Nov 30, 2022 · 0 comments

Comments

@alcaidio
Copy link

Bug report

Expected behaviour

use preserveAspectRatio correctly
https://user-images.githubusercontent.com/17033036/204895590-873697d5-b78d-4212-af43-08df76b73e23.mov

Actual behaviour

The svg property "preserveAspectRatio" does not work.
https://user-images.githubusercontent.com/17033036/204895550-50395456-863d-4a19-9a86-ab3eb083098c.mov

Steps to reproduce the behaviour

  1. create an instance of SvgPanZoom
  2. set properties of svg element (ex: preserveAspectRatio: xMidYMid meet)
  3. It doesn't work :/

Configuration

  • svg-pan-zoom version: 3.6.1
  • Browser(s): Google Chrome Version 107.0.5304.121
  • Operating system(s): macOS bigSur 11.2.3
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

1 participant