var $elPage = $( thisPage ),
$elFooter = $elPage.find( ":jqmData(role='footer')" ),
$elBackKey = $elFooter.children( ".ui-btn-back" ),
- $elMoreKey = $elFooter.children(":jqmData(icon='naviframe-more')");
+ $elMoreKey = $elFooter.children(":jqmData(icon='naviframe-more')"),
+ $elTabBar = $elFooter.children( ".ui-tabbar" ),
+ $elControlGroup = $elFooter.children( ".ui-controlgroup" );
//cntMore = 0,
// Check HW Key option
if( $elBackKey ) {
$elBackKey.hide();
}
+ if( $elTabBar ) {
+ $elTabBar.removeClass( "ui-tabbar-margin-more ui-tabbar-margin-back" );
+ }
+ if ( $elControlGroup ) {
+ $elControlGroup.removeClass( "ui-controlgroup-padding-more ui-controlgroup-padding-back" );
+ }
// Case 3 : no footer - do nothing
return true;
$( $.mobile.pagelayout.prototype.options.initSelector, e.target ).not( ":jqmData(fullscreen)" ).jqmData( "fullscreen", true );
}
$.mobile.pagelayout.prototype.enhanceWithin( e.target );
+ })
+ .bind( "pagebeforeshow", function ( event, ui ) {
+ var footer_filter = $( event.target ).find( ":jqmData(role='footer')" ),
+ controlgroup_filter = footer_filter.find( ":jqmData(role='controlgroup')" ),
+ $elFooterMore = controlgroup_filter.siblings( ":jqmData(icon='naviframe-more')" ),
+ $elFooterBack = controlgroup_filter.siblings( ".ui-btn-back" );
+
+ if ( $elFooterMore.length ) {
+ controlgroup_filter.addClass( "ui-controlgroup-padding-more" );
+ }
+ if ( $elFooterBack.length ) {
+ controlgroup_filter.addClass( "ui-controlgroup-padding-back" );
+ }
});
}( jQuery ));
margin: .5em 0 1em;
}
.ui-bar .ui-controlgroup {
+ padding-left: auto;
+ padding-right: auto;
margin: 0 .3em;
}
.ui-controlgroup-label {
}
}
}
+.ui-controlgroup.ui-controlgroup-padding-more {
+ padding-left: 58 * @unit_base;
+}
+.ui-controlgroup.ui-controlgroup-padding-back {
+ padding-right: 58 * @unit_base;
+}
.ui-controlgroup-vertical {
.ui-btn, .ui-checkbox, .ui-radio {
margin: 0;