mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-22 20:24:36 +00:00
Administration: Avoid menu/sub-menu overlap on small screens.
This changeset fixes overlapping glitches discovered in WordPress Admin menu behavior when used on small screens. Props turtlepod, collieit, chaion07, hilayt24, mehedi890, markparnell, webcommsat, mehedi890, ryokuhi, sabernhardt, ironprogrammer, audrasjb, costdev, ugyensupport. Fixes #32747. git-svn-id: https://develop.svn.wordpress.org/trunk@54392 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -938,7 +938,7 @@ $( function() {
|
||||
adjustment = maxtop;
|
||||
}
|
||||
|
||||
if ( adjustment > 1 ) {
|
||||
if ( adjustment > 1 && $('#wp-admin-bar-menu-toggle').is(':hidden') ) {
|
||||
$submenu.css( 'margin-top', '-' + adjustment + 'px' );
|
||||
} else {
|
||||
$submenu.css( 'margin-top', '' );
|
||||
|
||||
Reference in New Issue
Block a user