m (test15) |
m (probably final fix for new navbar) |
||
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") | + | if ($(obj).is(":visible")) { |
if ($(obj).hasClass("small")) { | if ($(obj).hasClass("small")) { | ||
− | + | if ($totalWidth == 0) { | |
+ | $leftItem = obj; | ||
+ | } | ||
+ | $totalWidth = $totalWidth + $(obj).width(); | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} else { | } else { |
Revision as of 14:53, 23 September 2017