Prevent hoverIntent from shifting open, expanded admin menus if the entire submenu is not visible. props SergeyBiryukov, fixes #20857.
git-svn-id: https://develop.svn.wordpress.org/trunk@21065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ae5be6de5f
commit
49b038ed59
@ -189,6 +189,9 @@ $(document).ready( function() {
|
||||
over: function(e){
|
||||
var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop;
|
||||
|
||||
if ( m.is(':visible') )
|
||||
return;
|
||||
|
||||
menutop = $(this).offset().top;
|
||||
wintop = $(window).scrollTop();
|
||||
maxtop = menutop - wintop - 30; // max = make the top of the sub almost touch admin bar
|
||||
|
Loading…
Reference in New Issue
Block a user