Menu customizer: Ensure the search results section is full height.

fixes #33375.

Built from https://develop.svn.wordpress.org/trunk@33618


git-svn-id: http://core.svn.wordpress.org/trunk@33585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-08-14 21:32:25 +00:00
parent 9ee7f050e9
commit 1880411a0b
3 changed files with 5 additions and 5 deletions

View File

@ -364,8 +364,8 @@
itemSectionHeight: function() { itemSectionHeight: function() {
var sections, totalHeight, accordionHeight, diff; var sections, totalHeight, accordionHeight, diff;
totalHeight = window.innerHeight; totalHeight = window.innerHeight;
sections = this.$el.find( '.accordion-section-content' ); sections = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .accordion-section-content' );
accordionHeight = 46 * ( 1 + sections.length ) - 16; // Magic numbers. accordionHeight = 46 * ( 2 + sections.length ) - 13; // Magic numbers.
diff = totalHeight - accordionHeight; diff = totalHeight - accordionHeight;
if ( 120 < diff && 290 > diff ) { if ( 120 < diff && 290 > diff ) {
sections.css( 'max-height', diff ); sections.css( 'max-height', diff );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-RC2-33617'; $wp_version = '4.3-RC2-33618';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.