VPenkov / okayNav

The world's okayest responsive navigation. This is (sort of) a legacy implementation. Please stay tuned to the 3.0 branch (https://github.com/VPenkov/okayNav/tree/v3.0)
4.02k stars 267 forks source link

Update _nav_default_width at each recalcNav call. #32

Open pmoradei opened 8 years ago

pmoradei commented 8 years ago

Update _nav_default_width at each recalcNav call. Usefull if menu items were added/removed in the meantime. I my use case i can add and remove nav nodes from the nav. I want to avoid destroy and reattach okayNav to take new nodes into account. So i updated recalcNav method to update at each call _nav_default_width.