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:
parent
9ee7f050e9
commit
1880411a0b
|
@ -364,8 +364,8 @@
|
|||
itemSectionHeight: function() {
|
||||
var sections, totalHeight, accordionHeight, diff;
|
||||
totalHeight = window.innerHeight;
|
||||
sections = this.$el.find( '.accordion-section-content' );
|
||||
accordionHeight = 46 * ( 1 + sections.length ) - 16; // Magic numbers.
|
||||
sections = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .accordion-section-content' );
|
||||
accordionHeight = 46 * ( 2 + sections.length ) - 13; // Magic numbers.
|
||||
diff = totalHeight - accordionHeight;
|
||||
if ( 120 < diff && 290 > diff ) {
|
||||
sections.css( 'max-height', diff );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue