Make WordPress Core

Ticket #19323: slide-really-tall-sliders-up.diff

File slide-really-tall-sliders-up.diff, 575 bytes (added by devinreams, 13 years ago)

Actually, let's slide the flyout up a bit. This way we can see it and it doesn't break the page if it has to go too low (e.g.: add options-general.php to the test plugin).

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

     
    191191                        if ( f < (b - o) )
    192192                                o = b - f;
    193193
     194                        r = o - f; // Remainder less the height of the fold
     195
    194196                        if ( o > 1 )
    195                                 m.css({'marginTop':'-'+o+'px'});
     197                                m.css({'marginTop':'-'+r+'px'});
    196198                        else if ( m.css('marginTop') )
    197199                                m.css({'marginTop':''});
    198200