Ticket #13215: 13215.js.2.patch
File 13215.js.2.patch, 1.7 KB (added by , 14 years ago) |
---|
-
wp-admin/js/nav-menu.dev.js
426 426 } 427 427 }); 428 428 429 // Find the width of all tabs 430 tabs.each(function(){ 431 tabsWidth += $(this).outerWidth(true); 432 }); 433 434 // Check if we need the tab manager 435 if( tabsWidth <= fixed.width() 436 - fluid.css('padding-left').slice(0,-2) 437 - fluid.css('padding-right').slice(0,-2) ) 438 return; 439 440 // Set up right margin for overflow, unset padding 441 fluid.css({ 442 'margin-right' : (-1 * tabsWidth) + 'px', 443 'padding' : 0, 444 }); 445 429 446 // Build tab navigation 430 447 arrowLeft = $('<div class="nav-tabs-arrow nav-tabs-arrow-left"><a>«</a></div>'); 431 448 arrowRight = $('<div class="nav-tabs-arrow nav-tabs-arrow-right"><a>»</a></div>'); 432 449 // Attach to the document 433 450 fixed.wrap('<div class="nav-tabs-nav"/>').parent().prepend( arrowLeft ).append( arrowRight ); 434 451 435 // Set up right margin436 tabs.each(function(){437 tabsWidth += $(this).outerWidth(true);438 });439 fluid.css('margin-right', (-1 * tabsWidth) + 'px');440 441 452 // Set the menu tabs 442 453 resetMenuTabs(); 443 454 // Make sure the tabs reset on resize -
wp-admin/css/nav-menu.dev.css
135 135 overflow: hidden; 136 136 } 137 137 138 .no-js#menu-management .nav-tabs {138 #menu-management .nav-tabs { 139 139 padding-left: 30px; 140 clear: both;140 padding-right: 10px; 141 141 } 142 142 .js #menu-management .nav-tabs { 143 143 float: left;