Attach Lightbox to specific Part of DOM

Attach Lightbox to specific Part of DOM

tnaeschertnaescher Posts: 22Questions: 6Answers: 0

Hello,

I am currently evaluating the Editor Extension for DataTables.
I am having the following Issue: The Pop-up-Modals to add or edit the data work on Desktop but are not centered, and on mobile (with Responsive extension) they are being covered by the rest of the WebApplication.
I believe the issue happens because only 2/3 of the width and 3/4 of the heigth are available for content - the rest is navigation and so on. The Lightbox attaches to the DOM outside of the content div and therfore the 100%-heigth settings are calculated on the base of the wrong div.

Is it possible to change the DIV where the Lightbox attaches?

Best Regards

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin
    Answer ✓

    Only by modifying the code. In the Editor code there is:

            $('body')
                .append( self._dom.background )
                .append( self._dom.wrapper );
    

    which could be modified to insert where you need.

    The other option is to have a custom display controller.

    Regards,
    Allan

This discussion has been closed.