Skip to content

Commit

Permalink
released v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsroge committed Jul 9, 2015
1 parent 88f1f99 commit 3466b37
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "priority-nav",
"title": "priority-nav",
"version": "1.0.7",
"version": "1.0.8",
"main": [
"dist/priority-nav.js",
"dist/priority-nav-core.css"
Expand Down
6 changes: 3 additions & 3 deletions dist/priority-nav.js
@@ -1,5 +1,5 @@
/*
* priority-nav - v1.0.7 | (c) 2015 @gijsroge | MIT license
* priority-nav - v1.0.8 | (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,7 +297,7 @@
/**
* Keep executing until all menu items that are overflowing are moved
*/
while (totalWidth < restWidth && _this.querySelector(mainNav).children.length > 0 || 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
Expand All @@ -309,7 +309,7 @@
/**
* Keep executing until all menu items that are able to move back are moved
*/
while (totalWidth > breaks[identifier][breaks[identifier].length - 1] && viewportWidth > settings.breakPoint) {
while (totalWidth >= breaks[identifier][breaks[identifier].length - 1] && viewportWidth > settings.breakPoint) {
//move item to menu
priorityNav.toMenu(_this, identifier);
//update dropdownToggle label
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
@@ -1,7 +1,7 @@
{
"name": "priority-nav",
"title": "priority-nav",
"version": "1.0.7",
"version": "1.0.8",
"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 3466b37

Please sign in to comment.