gallery: show the widget after pageshow
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 15 Jan 2013 02:22:13 +0000 (11:22 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 15 Jan 2013 07:26:05 +0000 (16:26 +0900)
The gallery widget can't calculate the position and size on pagebeforeshow.
Hence show the gallery after pageshow.

Change-Id: Ie283f001a1af9c670a7603204afbe51bff61aaa7

src/widgets/gallery/js/jquery.mobile.tizen.gallery.js

index df47fd6..1add076 100755 (executable)
                $( e.target ).find( ":jqmData(role='gallery')" ).gallery();
        });
 
-       $( document ).bind( "pagebeforeshow", function ( e ) {
+       $( document ).bind( "pageshow", function ( e ) {
                $( e.target ).find( ":jqmData(role='gallery')" ).gallery( 'show' );
        });