Help tabs: remove scrollbar and max-height. see #19155.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -93,8 +93,6 @@ screenMeta = {
|
||||
element: null, // #screen-meta
|
||||
toggles: null, // .screen-meta-toggle
|
||||
page: null, // #wpcontent
|
||||
padding: null, // the closed page padding-top property
|
||||
top: null, // the closed element top property
|
||||
|
||||
init: function() {
|
||||
this.element = $('#screen-meta');
|
||||
@@ -124,24 +122,9 @@ screenMeta = {
|
||||
panel.parent().show();
|
||||
panel.slideDown( 'fast', function() {
|
||||
link.addClass('screen-meta-active');
|
||||
screenMeta.refresh();
|
||||
});
|
||||
},
|
||||
|
||||
refresh: function( panel, link ) {
|
||||
var columns = $('#contextual-help-wrap').children(), height = 0;
|
||||
|
||||
columns.each(function(){
|
||||
var h = $(this).height();
|
||||
|
||||
if ( h > height )
|
||||
height = h;
|
||||
});
|
||||
|
||||
if ( height )
|
||||
columns.height( height );
|
||||
},
|
||||
|
||||
close: function( panel, link ) {
|
||||
panel.slideUp( 'fast', function() {
|
||||
link.removeClass('screen-meta-active');
|
||||
@@ -173,9 +156,6 @@ $('.contextual-help-tabs').delegate('a', 'click focus', function(e) {
|
||||
// Panels
|
||||
$('.help-tab-content').not( panel ).removeClass('active').hide();
|
||||
panel.addClass('active').show();
|
||||
|
||||
// Refresh the padding of the screen meta box.
|
||||
screenMeta.refresh();
|
||||
});
|
||||
|
||||
$(document).ready( function() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user