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
Cannot get Metro UI navigation bar dropdown to work #574
Comments
<li> |
Sergey, Thanks for the response. I was not specific enough on my question. I have the template working for the most part, its only the dropdown that does not show up. I have the HTML snippet you shared included on the nav bar, but on the mouse over or click the drop down menu does not show. |
I also have this problem. |
Well, the dilema it's solved. In the docs examples, there is a function called "reinit" in docs.js file. This function calls $.Metro.initDropdowns(). If I comment this, the examples also stop working. |
Thanks @ratones . I need to give it a try. |
am having the same problem. drop downs dont work and the navbar dropdown on small view port is not working too.
|
Same problem. The code in docs dosen't work ! |
I once uncounted the same problem and this is how i solved it. |
please read this http://metroui.org.ua/requirements.html |
Hey, thanks for the response. I used this order but still coudn't get through this. :/
|
Do you have a sample page to look at? |
Sample page please |
How can the tiles be made responsive --- Original Message --- From: "Sergey Pimenov" notifications@github.com please read this http://metroui.org.ua/requirements.html Reply to this email directly or view it on GitHub: |
No idea why Drop-down is not working. I included script('js/jquery-2.1.1.min.js') style('css/jquery-ui.css') style('css/metro-bootstrap.min.css') |
metro.min.js includes all js metro components. Check your main container for class metro. If your build dropdown from ajax, set global variable METRO_AUTO_REINIT to true |
Yes, my Body tag have metro class. Also should I comment-out metro-dropdown.js now? body class="metro div class="container" nav class="sidebar dark"
/nav ... |
js debug please |
Hi no error on console. In short it is not toggling. So I think the fact is, it is not able to apply JS to that element which is |
Everything is working fine when all my webpages are in the root folder. when I moved one of my webpage to a sub-folder many things are not working like
|
No idea to resolve the problem ? I still can't use the dropdown (i'm using the last version of Ruby on Rails, and all other components are up-to-date). |
make sure all the components you have input into the provide the code you use? |
To solve this problem, I remplace |
I do have this issue of drop-down menu not working too, but only when I move a file out of the root folder. I've tried different ideas but none has worked so far. I always end up putting the file back into the root folder (against the initial project design). |
You have to have all your files in the root folder or the navbar drop downs wont work. Non navbar dropdowns work anywhere. Only the docs css/js versions work. The other versions do not There are some hard paths in some files somewhere that I cannot fine |
In load-metro.js there are some relative paths. Change them to absolute paths and the changes will be picked up no matter where your code is |
add this : |
@thilinapiy doens't works! |
I done same as: thus: WITH
Thanks so much.. |
Yes, I confirmed it as well, the suggestion by aureo91 does work but I hope the js/load-metro.js script removal does not affect the functionality of the library. |
Remember olton commented on Dec 5, 2014 and said metro.min.js includes all js metro components... |
Ok. Actually, a look into js/load-metro.js shows that the script actually inserts js/metro.min.js to the head tag if the document's host name does not contain ".dev" or "modernui". In essence, the bug comes from line 5 of load-metro.js file which appends metro.min.js to head tag assuming the js directory is in the root directory i.e. "js/metro.min.js" instead of something like "path-to-js-directory/js/metro.min.js" |
I'm having trouble getting the navigation bar to work. I'm using Jquery ver 2.1.1. I've validated that jquery is working (added a little alert for window load). The navigation bar itself is rendering, but the dropdown just does not work. I'm using Visual Studio and installed the package via nuget.
JS Files included:
metro.min.js
jquery-2.1.1.js
CSS Files:
metro-bootstrap.css
metro-bootstrap-responsive.css
Please help.
The text was updated successfully, but these errors were encountered: