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

does not collapse on initial page load #43

Closed clemsontiger closed 8 years ago

clemsontiger commented 8 years ago

If my window is sized so that the nav should appear collapsed, upon initial page load it does not collapse it. once I resize the browser it does though. any quick thoughts what could cause this issue?

clemsontiger commented 8 years ago

It seems to be not firing self.window.on('load.okayNav'); for some reason, though I cannot figure out why not. can you explain how this is supposed to work?

clemsontiger commented 8 years ago

okay, found out I can call like this: $('#okayNav').okayNav('recalcNav'); to run it. Wish I know why the window.on(load) wasn't firing thoughl)

clemsontiger commented 8 years ago

okay, i'm closing this out as I think I found my problem. I believe I have something already calling window onload and resize that was conflicting. I'm re-writing to allow multiple calls to it separate so that it runs them all.