-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Lightbox not working on IE 11 #277
Comments
Can you post a debug of the console, and a screenshot? |
I can confirm this happens, will investigate soon |
It's due to the use of display: flex which isn't fully supported by IE |
Is there any hacky solution to fix it temporarily (till this bug is fixed) |
Any news on this? I've been trying to come up with a work around without any luck. |
This was introduced in #274, so just use 5.2.0 for now |
It's great that we weren't the first to find this issue. Confirmed @ashleydw workaround by replacing our version with 5.2.0: |
@RafaPolit maybe you have a suggestion on fixing the IE flex bug? |
Change And you're done. |
Change the code as Linewalker said.
|
We need this fix - fast. We used this lightbox in production and are fuc*** right now. Please do what you can, as fast as you can. I owe you a beer then ;) |
@Domtaholic Just add the following CSS, no big deal: .ekko-lightbox .modal-dialog {
flex: 100%!important;
margin-left: 0;
margin-right: 0;
} Did the same a moment ago, as we have to use Thanks @ashleydw for the great work. |
@Domtaholic no one here is your bitch... contribute if you want open sourced projects to add new features |
I fixed the issue with the following:
Then, in my JS
Don't know if this solution is better or worse than those above, but figured I'd share. |
@cseelus solution is working. thanks! |
So what's the status? Is |
@giedriusr Yep, 5.3.0 works quite well |
IE 11 as well? |
Jep, with my additional CSS from above. |
@cseelus solution is working ! Thanks you. For more information, i have added this on my CSS :
This code detects the presence of an IE type browser and apply the style. In my use case, some images displayed in portrait mode display the vertical or horizontal scroll bar only on IE with this new style. So, Hoping that it can help you ! |
Hopefully fixed in https://github.com/ashleydw/lightbox/releases/tag/v5.4.0-rc I changed the flex from 1 to 100% as per the comments above |
Confirming fixed in RC5.4 - images are already displaying correctly in Edge. But, yeah, IE is such a dead horse that thats probably not worth even mentioning than fixing :-) EDIT: Now I realized this issue is called IE11 fix. Well, not fixed then - image is not centered |
👍 thanks @KminekMatej Not centered vertically or horizontally? Vertically is expected as per Bootstrap modal. A new option |
Hello,
the lightbox examples working only on chrome and firefox. in ie only the grey overlay is shown but not the actual content. the js console shows no error.
any ideas?
The text was updated successfully, but these errors were encountered: