Skip to content

Commit

Permalink
Add recalcul of default-width for certains cases
Browse files Browse the repository at this point in the history
I call about this problem in the issue VPenkov#48
  • Loading branch information
throrin19 authored Jun 24, 2016
1 parent a74202a commit d3ed14e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/js/jquery.okayNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@
expand_width = space_taken + self.last_visible_child_width + self.toggle_icon_width,
expandAll_width = space_taken - nav_full_width + self.default_width;

self.default_width = self.getChildrenWidth(self.navigation);

if (wrapper_width > expandAll_width) {
self._expandAllItems();
self.toggle_icon.addClass('okay-invisible');
Expand Down

0 comments on commit d3ed14e

Please sign in to comment.