Skip to content

Commit

Permalink
released v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsroge committed Jun 27, 2015
1 parent c45737f commit b886d22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "priority-nav",
"title": "priority-nav",
"version": "1.0.6",
"version": "1.0.7",
"main": [
"dist/priority-nav.js",
"dist/priority-nav-core.css"
Expand Down
7 changes: 4 additions & 3 deletions dist/priority-nav.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* priority-nav - v1.0.6 | (c) 2015 @gijsroge | MIT license
* priority-nav - v1.0.7 | (c) 2015 @gijsroge | MIT license
* Repository: https://github.com/gijsroge/priority-navigation.git
* Description: Priority+ pattern navigation that hides menu items if they don't fit on screen.
* Demo: http://gijsroge.github.io/priority-nav.js/
Expand Down Expand Up @@ -297,12 +297,12 @@
/**
* Keep executing until all menu items that are overflowing are moved
*/
while (totalWidth < restWidth || viewportWidth < settings.breakPoint && _this.querySelector(mainNav).children.length > 0) {
while (totalWidth < restWidth && _this.querySelector(mainNav).children.length > 0 || viewportWidth < settings.breakPoint && _this.querySelector(mainNav).children.length > 0) {
//move item to dropdown
priorityNav.toDropdown(_this, identifier);
//recalculate widths
calculateWidths(_this, identifier);

//update dropdownToggle label
if(viewportWidth < settings.breakPoint) updateLabel(_this, identifier, settings.navDropdownBreakpointLabel);
}

Expand All @@ -312,6 +312,7 @@
while (totalWidth > breaks[identifier][breaks[identifier].length - 1] && viewportWidth > settings.breakPoint) {
//move item to menu
priorityNav.toMenu(_this, identifier);
//update dropdownToggle label
if(viewportWidth > settings.breakPoint) updateLabel(_this, identifier, settings.navDropdownLabel);
}

Expand Down
4 changes: 2 additions & 2 deletions dist/priority-nav.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "priority-nav",
"title": "priority-nav",
"version": "1.0.6",
"version": "1.0.7",
"main": "dist/priority-nav.js",
"description": "Priority+ pattern navigation that hides menu items if they don't fit on screen.",
"homepage": "http://gijsroge.github.io/priority-nav.js/",
Expand Down

0 comments on commit b886d22

Please sign in to comment.