From b148b13d781bda70eb5af5b8d9a190549ee92041 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 29 Dec 2010 15:50:17 +0800 Subject: [PATCH] ux/Lightbox.js --- ux/Lightbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 05628f4e19..37b37d586f 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -181,9 +181,10 @@ Roo.apply(Roo.ux.Lightbox.prototype, this.lightbox = this.roolightbox; this.overlay = Roo.DomHelper.append(document.body, { html : '' }); + this.overlay.setVisibilityMode(Roo.Element.DISPLAY); + this.overlay.hide(); + this.overlay.on('click', this.end, this); - //Roo.get('overlay').hide(); - //Roo.get('overlay').on('click', this.end, this); this.lightbox.hide(); this.lightbox.on('click', function(event) { if (Roo.get(event.getTarget()).hasClass('lightbox')) { -- 2.39.2