Open jDramaix opened 9 years ago
Is anyone working on this issue? If no I can try to find some time to rewrite flexnav in gwtquery...
I had thought to port flexnav as a gquery plugin, but I have not found the time yet. It's fantastic if you have the time. I can help if you have any issue or review your code.
That would be nice !
Most of the code will probably end up in gwt-site-webapp, to replace global.js.
Should I put the plugin's code in that project? Or create a separate project, either under gwtquery-plugins's name, or my own repository & package names?
About the various styles used, I'm thinking of merely copying the style.css resulting from the "compilation" by grunt, extracting the part about the plugin to the plugin if applicable, and putting the rest in either gwt-site or gwt-site-webapp.
Where is the opening of the navigation menu handled? I can't find anything related to the "closed" class...
Where is the opening of the navigation menu handled? I can't find anything related to the "closed" class...
in src/main/resources/main.tpl
Sorry, I meant where that class is added/removed when you hover around the menu...
I must be stupid, but in https://gwt.googlesource.com/gwt-site-webapp/+/master/src/main/java/com/google/gwt/site/webapp/client/GWTProjectEntryPoint.java I can't find any reference to either "nav", "navigation", "closed", or any other similar name related to the menu...
Nop you're not stupid :-) The code is not merged yet into master
You can checkout the code by doing:
git fetch https://gwt.googlesource.com/gwt-site-webapp refs/changes/31/12531/1 && git checkout FETCH_HEAD
Hello.
Sorry it took so long, but I think the rewrite in GWT/GWTQuery is globally ok.
You can see the result on http://nekoko.fr/gwt-flexnav/
Though I'm not exactly sure of the intended effect, so I can't guarantee all is ok...
Regards
The menu doesn't open when I test on my nexus 5
Do you put the code for the flex-nav rewrite somewhere ?
Code is on:
Are you sure the menu actually works on the gwtproject.org site? I tried reducing my browser window, display did switch to mobile view, but clicking on the menu didn't do anything. And I don't see the "lg-screen" class the flexnav plugin should put on the navigation bar, either.
Definitively the menu is not working in mobile. I will take a look, also I'll review your plugin. BTW, menu does not work in your result url.
For the time being we use a jQuery plugin in order to display the website menu on mobile. We should remove this code and use GQuery instead to build the mobile menu.