mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Fix lag when opening help tab if screen options was opened before, fixes #19172
git-svn-id: https://develop.svn.wordpress.org/trunk@19186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -124,18 +124,22 @@ screenMeta = {
|
||||
panel.parent().show();
|
||||
panel.slideDown( 'fast', function() {
|
||||
link.addClass('screen-meta-active');
|
||||
screenMeta.refresh();
|
||||
});
|
||||
|
||||
screenMeta.refresh();
|
||||
},
|
||||
|
||||
refresh: function( panel, link ) {
|
||||
var columns = $('#contextual-help-wrap').children(), height;
|
||||
var columns = $('#contextual-help-wrap').children(), height = 0;
|
||||
|
||||
columns.height('auto');
|
||||
columns.each(function(){
|
||||
var h = $(this).height();
|
||||
|
||||
height = Math.max.apply( null, $.map( columns, function( el ) { return $(el).height(); }) );
|
||||
columns.height( height );
|
||||
if ( h > height )
|
||||
height = h;
|
||||
});
|
||||
|
||||
if ( height )
|
||||
columns.height( height );
|
||||
},
|
||||
|
||||
close: function( panel, link ) {
|
||||
|
||||
Reference in New Issue
Block a user