-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
svg distorting when using .img-responsive in IE 10 #10073
Comments
|
Yep corrected the class typo whoops |
Can you put together a jsbin or jsfiddle demonstrating this? |
I see no issues with http://jsbin.com/ezEYuvU/1/. Aspect ratio looks good in IE10. Could be you have fixed dimensions elsewhere? Can't be sure without more info though, but until then, closing out since I didn't see any problems. |
Hi Sorry for not getting back sooner I have managed to replicate: Seems to happen when it is put into a col-* as was fine when not. Could not reproduce with the google logo one you used however that had a an svg.png extension so something else may be occuring there. Hope this helps Have included a few examples |
Sorry does also appear to happen without a col-* image the first svg i tried was less than 300px. Also appears to be an issue on Safari on the Mac (is fine on Windows) |
I´m also having the same issue as above with distorted svg images on IE11. Not sure how to work around this when you load the svg dynamically. (for our own images we could probably add preserveAspectRatio attribute to the svg itself. But that does not help when loading svgs not created manually etc. |
Updated the JS Bin to use BootstrapCDN: http://jsbin.com/IKOfOsi/6/ |
Confirmed. |
…svg.img-responsive correctly
(svg distorting when using .img-responsive in IE 10)
I have a svg logo that with .image-responsive class that looks fine in chrome, firefox etc ie it fills the width area and keeps its proportions however in IE 10 it becomes elongated ie the width is correct but is trying to stay the same height as the origional source.
I fixed by adding height:100% \9; to the class so it is ignored by firefox and chrome (as height 100% displays weird in Chrome)
Not sure if the is a problem for all image types in IE10 or just svg just thought I would add this quick fix here encase anyone else has the same issue.
The text was updated successfully, but these errors were encountered: