Menu customizer: Ensure the search results section is full height.
fixes #33375. git-svn-id: https://develop.svn.wordpress.org/trunk@33618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a4bbc4454c
commit
7abf08a52c
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user