Skip to content

Commit

Permalink
Fixing #25
Browse files Browse the repository at this point in the history
  • Loading branch information
istvan-ujjmeszaros committed Mar 27, 2016
1 parent afe8740 commit 52eb778
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bootstrap-autohidingnavbar.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ui",
"navigation"
],
"version": "1.0.4",
"version": "1.0.5",
"author": {
"name": "István Ujj-Mészáros",
"url": "https://github.com/istvan-autohidingnavbar"
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-autohidingnavbar",
"version": "1.0.4",
"version": "1.0.5",
"homepage": "http://www.virtuosoft.eu/code/bootstrap-autohidingnavbar/",
"authors": [
{
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.bootstrap-autohidingnavbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Bootstrap Auto-Hiding Navbar - v1.0.4
* Bootstrap Auto-Hiding Navbar - v1.0.5
* An extension for Bootstrap's fixed navbar which hides the navbar while the page is scrolling downwards and shows it the other way. The plugin is able to show/hide the navbar programmatically as well.
* http://www.virtuosoft.eu/code/bootstrap-autohidingnavbar/
*
Expand Down Expand Up @@ -40,7 +40,7 @@
}

autoHidingNavbar.element.addClass('navbar-hidden').animate({
top: -autoHidingNavbar.element.height()
top: -1 * parseInt(autoHidingNavbar.element.css('height'), 10)
}, {
queue: false,
duration: autoHidingNavbar.settings.animationDuration
Expand Down Expand Up @@ -144,7 +144,7 @@
this.setHideOffset(this.settings.hideOffset);
this.setAnimationDuration(this.settings.animationDuration);

_hideOffset = this.settings.hideOffset === 'auto' ? this.element.height() : this.settings.hideOffset;
_hideOffset = this.settings.hideOffset === 'auto' ? parseInt(this.element.css('height'), 10) : this.settings.hideOffset;
bindEvents(this);

return this.element;
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.bootstrap-autohidingnavbar.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
Expand Up @@ -13,7 +13,7 @@
"url": "http://github.com/istvan-ujjmeszaros/bootstrap-autohidingnavbar.git"
},
"homepage": "http://www.virtuosoft.eu/code/bootstrap-autohidingnavbar/",
"version": "1.0.4",
"version": "1.0.5",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.13",
Expand Down
4 changes: 2 additions & 2 deletions src/jquery.bootstrap-autohidingnavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

autoHidingNavbar.element.addClass('navbar-hidden').animate({
top: -autoHidingNavbar.element.height()
top: -1 * parseInt(autoHidingNavbar.element.css('height'), 10)
}, {
queue: false,
duration: autoHidingNavbar.settings.animationDuration
Expand Down Expand Up @@ -136,7 +136,7 @@
this.setHideOffset(this.settings.hideOffset);
this.setAnimationDuration(this.settings.animationDuration);

_hideOffset = this.settings.hideOffset === 'auto' ? this.element.height() : this.settings.hideOffset;
_hideOffset = this.settings.hideOffset === 'auto' ? parseInt(this.element.css('height'), 10) : this.settings.hideOffset;
bindEvents(this);

return this.element;
Expand Down

0 comments on commit 52eb778

Please sign in to comment.