Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 40e8282

Browse files
committed
Merge branch 'wkuc-master' into development
2 parents 9ee5b43 + f769645 commit 40e8282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flexmenu.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
// Find all of the list items that have been pushed below the first item. Put those items into the popup menu. Put one additional item into the popup menu to cover situations where the last item is shorter than the "more" text.
9393
$lastChild = $this.find('> li:last-child');
9494
keepLooking = (needsMenu($lastChild));
95-
$lastChild.appendTo($popup);
9695
// If there only a few items left in the navigation bar, move them all to the popup menu.
9796
if ((i - 1) <= s.cutoff) { // We've removed the ith item, so i - 1 gives us the number of items remaining.
9897
$($this.children().get().reverse()).appendTo($popup);
@@ -101,6 +100,8 @@
101100
}
102101
if (!keepLooking) {
103102
break;
103+
}else{
104+
$lastChild.appendTo($popup);
104105
}
105106
}
106107
if (allInPopup) {

0 commit comments

Comments
 (0)