Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if nav is between two blocks #48

Open
throrin19 opened this issue Jun 24, 2016 · 1 comment
Open

Error if nav is between two blocks #48

throrin19 opened this issue Jun 24, 2016 · 1 comment

Comments

@throrin19
Copy link

I, I try to set my navbar expandable and responsive with okaynav but i have a big problem.

I Have My List Like this :

+------------+----------------------------------+-------------------+
|            |                                  |                   |
|   Logo     |      OkayNav                     |     Other Button  |
|            |                                  |                   |
+------------+----------------------------------+-------------------+

But after try this, The result is :

+------------+------------------------------------------------------+
|            |                                                      |
|   Logo     |      OkayNav                         Other Button    |
|            |                                                      |
+------------+------------------------------------------------------+

The Okaynav part don't care about the other block in the right. How to fix this ?

@throrin19
Copy link
Author

Okay I find my problem. The list is created with jQuery so, I call the recalcNav.

But, in my case, the calcul is not correct and the default_width is wrong because it's not updated. So, I add this line after all calcul vars in recalcNav Function and it works fine :

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

I set this in pull request

throrin19 added a commit to throrin19/okayNav that referenced this issue Jun 24, 2016
I call about this problem in the issue VPenkov#48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant