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

SVGs not scaled to max possible size in Chrome #681

Closed
davidc opened this issue Jun 6, 2020 · 3 comments
Closed

SVGs not scaled to max possible size in Chrome #681

davidc opened this issue Jun 6, 2020 · 3 comments

Comments

@davidc
Copy link

davidc commented Jun 6, 2020

SVGs, being scalable, should be displayed at the maximum possible size in the lightbox.

Using Firefox this works as expected. In Chrome, the SVG in the lightbox is tiny, tinier even than the viewbox specified in the SVG.

Lightbox2 version 2.11.1
Problem occurs in Chrome latest but not Firefox latest.
Windows 10

Example SVG:
overview.zip

Relevant HTML:

<div>
    <a href="{% link img/network/overview.svg %}" data-lightbox="network" data-title="LONAP Network Overview" style="cursor: zoom-in">
        <img src="{% link img/network/overview.svg %}" alt="LONAP Network Overview" width="845" height="270"/>
    </a>
</div>

Here is how the lightbox looks in Chrome:

image

Here is how it looks (correctly) in Firefox:

image

May be related to #552 however I have upgraded beyond the version fixed in that issue.

@davidc
Copy link
Author

davidc commented Jun 6, 2020

Edge 44.18362.449.0 is also broken:

image

but Internet Explorer 11 is fine:

image

@davidc
Copy link
Author

davidc commented Jun 9, 2020

The page demonstrating the issue is now live - top image
https://www.lonap.net/network

@lokesh
Copy link
Owner

lokesh commented Jul 7, 2020

@lokesh lokesh closed this as completed Jul 7, 2020
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

2 participants