-
Notifications
You must be signed in to change notification settings - Fork 559
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
SVGView doesn't fit the image in the screen with contentMode ".scaleAspectFit" #776
Comments
@aram-azbekian any chance you found a solution? |
@gunhansancar @aram-azbekian Any chance you found a solution? :P |
@orelsgitconstru Not really unfortunately. I ended up converting the
Here also their Like the following:
|
I found a solution. Inside your svg, first row, there's width and height. Change them. |
Nice idea, wow. |
Hi! I have a small project where I'm trying to open SVG image using Macaw library. In that project I make a SVGView and set its contentMode parameter to ".scaleAspectFit". As far as I know, the only condition for it to work is availability of "width" and "height" parameters in SVG XML. But it just doesn't work and the image is presented in its original scale
So, this is a code snippet where I create a view:
and attached below is the image example from the project
Thanks in advance. Let me know if you need anything else.
svg-5.svg.zip
The text was updated successfully, but these errors were encountered: