Make WordPress Core

Ticket #32747: 32747.diff

File 32747.diff, 482 bytes (added by sabernhardt, 2 years ago)

checks whether toolbar mobile menu toggle is showing or not

  • src/js/_enqueues/admin/common.js

     
    938938                        adjustment = maxtop;
    939939                }
    940940
    941                 if ( adjustment > 1 ) {
     941                if ( adjustment > 1 && $('#wp-admin-bar-menu-toggle').is(':hidden') ) {
    942942                        $submenu.css( 'margin-top', '-' + adjustment + 'px' );
    943943                } else {
    944944                        $submenu.css( 'margin-top', '' );