ux/Lightbox.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 29 Dec 2010 07:52:12 +0000 (15:52 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 29 Dec 2010 07:52:12 +0000 (15:52 +0800)
ux/Lightbox.js

index f818b8a..853d6cd 100644 (file)
@@ -350,11 +350,14 @@ Roo.apply(Roo.ux.Lightbox.prototype,
         // stretch overlay to fill page and fade in
         //var arrayPageSize = this.getPageSize();
         
-        this.overlay.setHeight(Roo.lib.Dom.getDocumentHeight()),        
-        this.overlay.setWidth(Roo.lib.Dom.getDocumentWidth()),
-        //new Effect.Appear(this.overlay,
-        //    { duration: this.overlayDuration, from: 0.0, to: this.overlayOpacity });
-
+        this.overlay.setHeight(Roo.lib.Dom.getDocumentHeight()) ;
+        this.overlay.setWidth(Roo.lib.Dom.getDocumentWidth());
+        this.overlay.fadeIn({
+                endOpacity: this.overlayOpacity, 
+                easing: 'easeOut',
+                duration: this.overlayDuration
+        });
+         
         //this.imageArray = [];
         var imageNum = 0;