Ticket #13335: navmenu.17732.diff
| File navmenu.17732.diff, 2.2 KB (added by , 16 years ago) |
|---|
-
wp-admin/css/nav-menu.dev.css
131 131 left: 0; 132 132 } 133 133 #menu-management .nav-tabs-arrow-right { 134 right: 0;134 right: 50px; 135 135 text-align: right; 136 136 } 137 137 -
wp-admin/js/nav-menu.dev.js
693 693 marginFluid = api.isRTL ? 'margin-right' : 'margin-left', 694 694 marginFixed = api.isRTL ? 'margin-left' : 'margin-right', 695 695 msPerPx = 2; 696 696 697 697 /** 698 698 * Refreshes the menu tabs. 699 699 * Will show and hide arrows where necessary. … … 721 721 722 722 // Show the arrows only when necessary 723 723 if( fixedWidth > tabsWidth ) 724 { 725 // If the tabs have been scrolled and the arrows disappear, scroll to the beginning of the tabs. 726 css[marginFluid] = '0px'; 727 fluid.animate( css, 100, "linear" ); 724 728 arrowLeft.add( arrowRight ).hide(); 729 } 725 730 else 726 731 arrowLeft.add( arrowRight ).show(); 727 732 } 728 733 729 734 $.fn.extend({ 730 735 makeTabVisible : function() { 736 // Don't try to make the menu-add-new tab visible since it's always visible. 737 if (this.hasClass('menu-add-new')) 738 return; 731 739 var t = this.eq(0), left, right, css = {}, shift = 0; 732 740 733 741 if( ! t.length ) return this; … … 756 764 757 765 // Find the width of all tabs 758 766 tabs.each(function(){ 759 tabsWidth += $(this).outerWidth(true); 767 if ( !$(this).hasClass('menu-add-new')) 768 { 769 tabsWidth += $(this).outerWidth(true); 770 } 760 771 }); 761 772 762 773 // Set up fixed margin for overflow, unset padding … … 769 780 arrowRight = $('<div class="nav-tabs-arrow nav-tabs-arrow-right"><a>»</a></div>'); 770 781 // Attach to the document 771 782 fixed.wrap('<div class="nav-tabs-nav"/>').parent().prepend( arrowLeft ).append( arrowRight ); 783 $('.nav-tabs-nav').css({'margin-right' : '70px'}); 784 $('.menu-add-new') 785 .css({ 786 'position' : 'absolute', 787 'top' : 0, 788 'right' : 0 789 }); 772 790 773 791 // Set the menu tabs 774 792 api.refreshMenuTabs();
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)