Extendablelist: Added min-height "load more button" in listitem
authorhjnim.kim <hjnim.kim@samsung.com>
Wed, 6 Mar 2013 06:12:23 +0000 (15:12 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Thu, 7 Mar 2013 12:10:31 +0000 (21:10 +0900)
Min-height has been added in listitem("load more button")
to display correctly

37px is button minimum size in UX Guide

N_SE-25953

Change-Id: Id113e57632eabe44e19e43a8459d3fff4ee83a14

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

index 11a1ad0..f9d7906 100644 (file)
@@ -208,8 +208,8 @@ define( [ '../jquery.mobile.tizen.scrollview' ], function ( ) {
                                more_items_to_load = t._numItemData - t._lastIndex;
                                num_next_load_items = ( o.extenditems <= more_items_to_load ) ? o.extenditems : more_items_to_load;
                                htmlData = myTemplate.tmpl( { NUM_MORE_ITEMS : num_next_load_items } );
-
-                               $( o.id ).append( $( htmlData ).attr( 'id', "load_more_message" ) );
+                               // Button minimum height(37px)
+                               $( o.id ).append( $( htmlData ).attr( 'id', "load_more_message" ).css( 'min-height' , "37px") );
                        }
 
                        $( o.id ).trigger( "create" );
@@ -241,8 +241,8 @@ define( [ '../jquery.mobile.tizen.scrollview' ], function ( ) {
                                        more_items_to_load = t._numItemData - t._lastIndex;
                                        num_next_load_items = ( o.extenditems <= more_items_to_load) ? o.extenditems : more_items_to_load;
                                        htmlData = myTemplate.tmpl( { NUM_MORE_ITEMS : num_next_load_items } );
-
-                                       $( o.id ).append( $( htmlData ).attr( 'id', "load_more_message" ) );
+                                       // Button minimum height(37px)
+                                       $( o.id ).append( $( htmlData ).attr( 'id', "load_more_message" ).css( 'min-height' , "37px") );
 
                                        $( "#load_more_message" ).live( "click", t, t._loadmore );
                                } else {