WordPress.org

Make WordPress Core

Ticket #19323: flyouts-too-tall.patch

File flyouts-too-tall.patch, 502 bytes (added by devinreams, 3 years ago)

Don't offset the margin for really tall sub-menus (which ends up being negative) if taller than the window

  • Users/devinreams/Sites/wordpress/wp-admin/js/common.dev.js

     
    191191                        if ( f < (b - o) ) 
    192192                                o = b - f; 
    193193 
    194                         if ( o > 1 ) 
     194                        if ( o > 1 && o > h ) 
    195195                                m.css({'marginTop':'-'+o+'px'}); 
    196196                        else if ( m.css('marginTop') ) 
    197197                                m.css({'marginTop':''});