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

fix(viewer): Set default size on SVG images if parsing fails in IE11 #1105

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

jstoffan
Copy link
Collaborator

The parseFromString method can throw errors in IE11 if the source SVG XML is malformed. The resulting image has no originalSize attribute, allowing it to expand to the size of the viewport and interfering with the new zoom behavior.

@jstoffan jstoffan requested a review from a team as a code owner November 21, 2019 22:31
@boxcla
Copy link

boxcla commented Nov 21, 2019

Verified that @jstoffan has signed the CLA. Thanks for the pull request!

@mergify mergify bot merged commit 4b08683 into box:master Nov 22, 2019
@jstoffan jstoffan deleted the fix-svg-ie11 branch November 22, 2019 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants