WordPress.org

Make WordPress Core

Changeset 33618


Ignore:
Timestamp:
08/14/2015 09:31:23 PM (4 years ago)
Author:
helen
Message:

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

fixes #33375.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r33617 r33618  
    365365            var sections, totalHeight, accordionHeight, diff;
    366366            totalHeight = window.innerHeight;
    367             sections = this.$el.find( '.accordion-section-content' );
    368             accordionHeight =  46 * ( 1 + sections.length ) - 16; // Magic numbers.
     367            sections = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .accordion-section-content' );
     368            accordionHeight =  46 * ( 2 + sections.length ) - 13; // Magic numbers.
    369369            diff = totalHeight - accordionHeight;
    370370            if ( 120 < diff && 290 > diff ) {
Note: See TracChangeset for help on using the changeset viewer.