Should use only inner width here

This commit is contained in:
Michal Čihař
2011-02-02 22:54:11 +01:00
parent 7148a7a380
commit 83ce2fee57

View File

@@ -2265,7 +2265,7 @@ $(document).ready(function() {
function menuResize()
{
var cnt = $('#topmenu');
var wmax = cnt.width() - 5; // 5 px margin for jumping menu in Chrome
var wmax = cnt.innerWidth() - 5; // 5 px margin for jumping menu in Chrome
var submenu = cnt.find('.submenu');
var submenu_w = submenu.outerWidth(true);
var submenu_ul = submenu.find('ul');