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

.objectFit('contain') in 100% 100% height and width container #6

Open
catalinux opened this issue Sep 22, 2015 · 0 comments
Open

.objectFit('contain') in 100% 100% height and width container #6

catalinux opened this issue Sep 22, 2015 · 0 comments

Comments

@catalinux
Copy link

When I have a container for the image with width:100%, and height:100% everything works great with css supported.

WHen I have a js $('.container img').objectFit('contain'), InternetExplorer show the right dimension for the picture (no stretching, entire picture,etc), but it does not center the image in the container.

is the desired output? The css version does not work in this way.

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