lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.17k stars 1.76k forks source link

position problem when mmenu and lightbox both are configured #644

Closed Raemy92 closed 5 years ago

Raemy92 commented 5 years ago

Hi I have a strange issue when both, lightbox and mmenu are configured: it seems that lightbox adds the divs inside the mmenu overlay container which results in wrong positioning of the lightbox when clicked on a image. the lightbox is always under the footer.

CMS: WordPress 5.1 JQuery: latest (should be 3.3) URL: http://dev19.planungskonzepte.ch/innenarchitektur/ Screenshot: https://imgur.com/a/6DVgq5z

I tested it with the DOM manipulator in Chrome: When I move the divs outside the mmenu div container, then everything works fine.

Thanks and best regards

Raemy92 commented 5 years ago

Solved it by adding a new div after the closing </body> tag and changed the append in the lightbox.js script from .appendTo($('body')); to .appendTo($('#id-of-the-div'));

lokesh commented 5 years ago

Glad you were able to sort it out! 👏