groupControl : change footer groupControl from min-width to percentage
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Wed, 6 Feb 2013 12:21:02 +0000 (21:21 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 7 Feb 2013 05:53:02 +0000 (14:53 +0900)
Change-Id: I1265b377b5e55b16dd4ea0b16c0be570eb4f0ee0

src/themes/tizen/common/jquery.mobile.theme.less
src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js

index 3ec9a50..bfffcf8 100644 (file)
                [data-role="button"] {
                        background : transparent;
                        
-                       min-width : 77 * @unit_base;
-
                        border-style : solid;
                        border-color : @color_bar_divider_line;
                        border-top-width : 0px;
                        border-bottom-width : 0px;
-                       border-left-width : 1px;
+                       border-left-width : 0px;
                        border-right-width : 1px;
 
-                       border-radius : 0px;
+                       border-top-left-radius : 0px !important;
+                       border-top-right-radius : 0px !important;
+                       border-bottom-left-radius : 0px !important;
+                       border-bottom-right-radius : 0px !important;
+
                        box-shadow : none;
 
                        padding : 0px;
index f86067f..1d3bba2 100644 (file)
                                $elHeader = $elPage.find( ":jqmData(role='header')" ).length ? $elPage.find( ":jqmData(role='header')") : $elPage.siblings( ":jqmData(role='header')"),
                                $elContent = $elPage.find( ".ui-content" ),
                                $elFooter = $elPage.find( ":jqmData(role='footer')" ),
-                               $elFooterGroup = $elFooter.find( ":jqmData(role='fieldcontain')" );
+                               $elFooterGroup = $elFooter.find( ":jqmData(role='fieldcontain')" ),
+                               $elFooterControlGroup = $elFooter.find( ".ui-controlgroup" );
 
                        // divide content mode scrollview and non-scrollview
                        if ( !$elPage.is( ".ui-dialog" ) ) {
                        if ( $elFooterGroup.find( "div" ).is( ".ui-controlgroup-label" ) ) {
                                $elFooterGroup.find( "div.ui-controlgroup-label" ).remove();
                        }
+
+                       if ( $elFooterControlGroup.length ) {
+                               var anchorPer = 100 / $elFooterControlGroup.find( "a" ).length;
+                               $elFooterControlGroup.find( "a" ).each( function ( i ) {
+                                       $elFooterControlGroup.find( "a" ).eq( i ).width( anchorPer + "%" );
+                               });
+                       }
                },
 
                _bindPageEvents: function () {