okayNav icon indicating copy to clipboard operation
okayNav copied to clipboard

Error if nav is between two blocks

Open throrin19 opened this issue 8 years ago • 1 comments

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 avatar Jun 24 '16 07:06 throrin19

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 avatar Jun 24 '16 09:06 throrin19