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

Horizontal white space of lightbox-container with SVG images #706

Closed
h-e-l-l-o-w-o-r-l-d opened this issue Mar 3, 2021 · 1 comment
Closed

Comments

@h-e-l-l-o-w-o-r-l-d
Copy link

Latest 2.11.3
Chrome, Firefox

Hi there,

using SVG Images results in a lightbox-container with lots of white space left and right. Am I missing something or is it a bug? PNGs and JPGs work as espected -> lightbox-container has the same size like the image.

SVG is 400 x 400 px and the html-tag is like:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Ebene_1" x="0px" y="0px" viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve">

See screenshot:


lightbox_bug

@lokesh
Copy link
Owner

lokesh commented Feb 21, 2023

Resolved in v2.11.4: https://github.com/lokesh/lightbox2/releases/tag/v2.11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants