mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +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:
parent
c72ea72c25
commit
f956f92421
@ -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', '' );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user