m (test12) |
m (test13) |
||
Line 414: | Line 414: | ||
if ($($clickItem).hasClass("sub-navbar-item")) { | if ($($clickItem).hasClass("sub-navbar-item")) { | ||
$(".test").html("caseA"); | $(".test").html("caseA"); | ||
− | + | if ($(obj).is(":visible") && $(obj).hasClass("small")) { | |
− | if ($totalWidth == 0) { | + | /*if ($totalWidth == 0) { |
$leftItem = obj; | $leftItem = obj; | ||
} | } | ||
− | $totalWidth = $totalWidth + $(obj).width(); | + | $totalWidth = $totalWidth + $(obj).width();*/ |
− | } | + | } |
} else { | } else { | ||
$(".test").html("caseB"); | $(".test").html("caseB"); | ||
Line 462: | Line 462: | ||
resizeNavbar(); | resizeNavbar(); | ||
}, 10); | }, 10); | ||
− | |||
− | |||
Revision as of 14:49, 23 September 2017