-
Notifications
You must be signed in to change notification settings - Fork 30
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
Sub items not displaying when loaded in mobile version #4
Comments
Same here (out of the box) , would be nice if this great script could be developped further! The purpose of the menu in mobile is evident and there's no way to load the site in desktop first when on mobile. So... please.. Tessa! |
In the end I used Menuzord (only $7) from http://codecanyon.net/item/menuzord-responsive-megamenu/8536398 and, although a little bloated, it did do what I needed it to. Example: http://www.traveldivision.com Hope that helps. |
Thanks Jack |
I totally agree, but had to find a quick solution - It's actually pretty hard to find a simple, light-weight, responsive, dropdown, touch-enabled navigation script. I had high hopes for this, but I couldn't get it to work. Unfortunately my JavaScript is intermediate at best, else I would have forked this myself - I'm sure we're not the only people with such a requirement. If you ever do find a better solution, let me know :) |
2015-02-20 0:18 GMT+01:00 Jack Barham [email protected]: If you ever do find a better solution, let me know :) Hartelijke groet, |
Found this but unfortunately it doesn't make any sense to me Hartelijke groet, |
Nor me either - Looks promising, but I wont be able to investigate until get some free time. If you get to the bottom of it, maybe do a pull request with the fixes here. I'd be keen to see this working correctly. |
Seems like this will work: before copy this (see underneath): and placed it in my index.html file. Hartelijke groet, |
Good work - Lets hope she'll update the script |
OK, downloaded the zip (March 2015) and had this same problem when implementing the code. The dropdown on click on a <768 screen only works if you change the orientation of the device and return it. If you reload the page into a <768 screen the onclick still functions incorrectly, but by resizing the browser window and returining it to <768 the code works exactly as required. Figured the problem was due to the unbinding only being triggered by the window resize / orientation change rather than the determined screen width on page load. After much wailing and gnashing of teeth I worked out a solution.... Change the toggleMenu section in dropdown.js to
which fires the adjustMenu() trigger each time the menu button is clicked. This sets the unbind event going which is the cause of the failure. And it works ! Thanks for the original code, it has sorted legacy Android 2 hover problem that was giving a client some headaches. |
…en loaded in mobile version
Hi! I couldn't reproduce the bug on Linux so I just applied the fix on my branch. You can either wait for @tessalt to merge me, or clone the repo directly from me https://github.com/gresakg/dropdowns I am actually actively maintaining this script since a year ago. |
Hi sorry I don't maintain this any more. If anyone wants write access to maintain or update they're welcome to it. |
Pitty and thanks for your script. I hope gresakg will take care. To me this sort of things is totally Hartelijke groet, Hans van Meteren, Numaga Design webontwerp, www.numaga-design.nl, Nijmegen 2015-03-11 23:43 GMT+01:00 Tessa Thornton [email protected]:
|
Hi, @tessalt , I can do it if you can give me write access. Regards, Greg |
applied @timrelton fix to issue #4 Sub items not displaying when loaded ...
The navigation seems to work really well. However, I've noticed an issue which I can't seem to fix. When the page is loaded in desktop (over 768px) the drop-downs and sub-menus work well, then when I drag the browser to less than 768px so it switches to mobile view the sub-menus still work. But when I refresh the browser (under 768px) the sub-menus don't open. When a drag it to desktop and then back to mobile it works again. This only seems to be happening when the page is loaded in mobile size. This seems to be the case in Chrome, Safari and Firefox on the Mac.
The text was updated successfully, but these errors were encountered: