Only show #screen-meta (which encloses the panels) when a panel is showing. Otherwise there's a one-pixel gray line that's really aggravating my OCD. see #18197.

git-svn-id: https://develop.svn.wordpress.org/trunk@19137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-11-03 23:30:55 +00:00
parent c649bc75bf
commit f73fb3a3bf
5 changed files with 8 additions and 5 deletions

View File

@@ -121,6 +121,7 @@ screenMeta = {
$('.screen-meta-toggle').not( link.parent() ).css('visibility', 'hidden');
panel.parent().show();
panel.slideDown( 'fast', function() {
link.addClass('screen-meta-active');
});
@@ -140,7 +141,8 @@ screenMeta = {
close: function( panel, link ) {
panel.slideUp( 'fast', function() {
link.removeClass('screen-meta-active');
$('.screen-meta-toggle').css('visibility', '');
$('.screen-meta-toggle').css('visibility', '');
panel.parent().hide();
});
}
};