Position of Ligthbox

Hello,

is it possible to place the Ligthbox closer to top of the page or relative to the top of the page?

On small Devices, like Netbooks, the Ligthbox unfortunately is not full displayed, particularly when used the Repeat-Event Section. Then the Buttons on bottom not attainable.

Best regards,
Jörg

Hello,

Unfortunately in 2.3 version it’s not easy to alter position of the lightbox. We’ve made changes to it and it should be displayed in the center of screen in the upcoming version. If you are interested I can attach our latest version (though it’s not final yet).

Best regards,
Ilya

Hi Guys,
I managed to center the position of the Lightbox using the following code

        scheduler.showCover = function(box){
           this.show_cover();
            var schedContainer = document.getElementById('dhx_cal_data');
            var windowheight = window.screen.availHeight * 0.10;
            var scrollOffsetY = window.pageYOffset || document.documentElement.scrollTop;
            if(box)
            {
                box.style.display="block";
                var B=getOffset(this._obj);
                
                box.style.top=Math.round(scrollOffsetY+windowheight)+"px";
                box.style.left=Math.round(B.left+(this._obj.offsetWidth-box.offsetWidth)/2)+"px";
            }
        }

Patiently anticipating the next release.
Thanks
Greg Goldberg

Thank you for the code! It’s solve my Problem.

No Problems xPilger, glad I could help…