Skip to content

Conversation

cslzchen
Copy link
Contributor

Ticket

https://openscience.atlassian.net/browse/SVCS-571

Purpose

Fix the issue that IE does not resize image to fit window size.

Changes

Explicitly set "max-width": "100%" and "height": "auto".

Side effects

No

QA Notes

Test small, medium and large files on IE for this fix and on other supported browsers to make sure that nothing breaks.

Deployment Notes

No

- IE does not automatically resize images to fit window size. Explicitly set max-width=100% and height=auto to fix this issue.
@coveralls
Copy link

coveralls commented Mar 22, 2018

Coverage Status

Coverage remained the same at 72.405% when pulling 976fd20 on cslzchen:fix/fix-image-zoom-for-ie into 227cae5 on CenterForOpenScience:develop.

Copy link
Contributor Author

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out to be easy than I thought. I was afraid that the library we use does not support IE but fortunately they do. We simply need to explicitly set the CSS for IE.

Instead of making an "IE-special" condition, I updated the CSS in general. Verified in local environment that this fix IE and does not break the others.

Ready for CR 🎆 🎆

@cslzchen cslzchen requested a review from felliott March 22, 2018 19:14
@felliott felliott merged commit 976fd20 into CenterForOpenScience:develop Mar 22, 2018
felliott added a commit that referenced this pull request Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants