tabbar: remove the width of last element
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 17 Jan 2013 08:01:58 +0000 (17:01 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Thu, 17 Jan 2013 08:50:22 +0000 (17:50 +0900)
At current version of UX, the background color of backbutton was removed.
So we don't have to calculate last element's width anymore.

Change-Id: If68b307096e0b5793e04ff7815cd5b7a0f554fcb

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

index 1c7acdf..f176d4c 100755 (executable)
                                isScrollingStart = false;
                        });
 
-                       $( document ).bind( "pageshow", function ( e, ui ) {
-                               var tabbar_filter = $( ".ui-page-active" ).find( ":jqmData(role='footer')" ).eq( 0 ).find( ":jqmData(role='tabbar')" ),
-                                       element_width = 0,
-                                       element_count = tabbar_filter.find( 'li' ).length;
-
-                               if ( tabbar_filter.length ) {
-                                       element_width = tabbar_filter.find("li:first").width();
-                                       tabbar_filter.find("li:last").width( tabbar_filter.width() - element_width * ( element_count - 1 ) );
-                               }
-                       });
-
-                       $( window ).bind( "resize", function ( e ) {
-                               var tabbar_filter = $( ".ui-page-active" ).find( ":jqmData(role='footer')" ).eq( 0 ).find( ":jqmData(role='tabbar')" ),
-                                       element_width = 0,
-                                       element_count = tabbar_filter.find( 'li' ).length;
-
-                               if ( tabbar_filter.length ) {
-                                       element_width = tabbar_filter.find("li:first").width();
-                                       tabbar_filter.find("li:last").width( tabbar_filter.width() - element_width * ( element_count - 1 ) );
-                               }
-                       });
-
                        $( window ).bind( "tabbar.scrollstart", function ( e ) {
                                if ( $( e.target ).find( ".ui-tabbar" ).length ) {
                                        isScrollingStart = true;