diff --git a/webapp/web/js/userMenu/userMenuUtils.js b/webapp/web/js/userMenu/userMenuUtils.js index eab8ee714..52bc44b15 100644 --- a/webapp/web/js/userMenu/userMenuUtils.js +++ b/webapp/web/js/userMenu/userMenuUtils.js @@ -2,10 +2,13 @@ $(function(){ - $("ul.dropdown li").hover(function(){ - + $("ul.dropdown li").hover(function(){ $(this).addClass("hover"); $('ul:first',this).css('visibility', 'visible'); + if ( $('ul.dropdown').width() > 88 ) { + $('ul:first li',this).css('width', ($("ul.dropdown").width() - 22) + 'px'); + } + $("ul.dropdown ul.sub_menu li:last-child").css('width', ($("ul.dropdown").width() - 14) + 'px'); }, function(){