m (test1) |
(test2) |
||
Line 408: | Line 408: | ||
//get center x position of item and place subitems centered to this | //get center x position of item and place subitems centered to this | ||
− | + | $middle = $(this).position().left + ($(this).width() * 0.5); | |
$totalWidth = 0; | $totalWidth = 0; | ||
− | $('.sub-navbar-item').each(function(i, obj) { | + | /*$('.sub-navbar-item').each(function(i, obj) { |
if ($($clickItem).hasClass("sub-navbar-item")) { | if ($($clickItem).hasClass("sub-navbar-item")) { | ||
if ($(obj).is(":visible") && $(obj).hasClass("small")) { | if ($(obj).is(":visible") && $(obj).hasClass("small")) { | ||
Line 460: | Line 460: | ||
resizeNavbar(); | resizeNavbar(); | ||
}, 10); | }, 10); | ||
+ | |||
+ | |||
Revision as of 14:33, 23 September 2017