jquery-fatNav icon indicating copy to clipboard operation
jquery-fatNav copied to clipboard

Orientation bug iOS

Open jschor opened this issue 10 years ago • 4 comments

Like your menu very much. Looks good and easy to install. Only when using it with iOS (iPad and iPhone) once you have used the menu and change orientation it stays the same and does not scale. It is also with your demo. Can this be fixed?

jschor avatar Jul 16 '15 17:07 jschor

anyone?

jschor avatar Jul 28 '15 16:07 jschor

this line seems to cause the problem: https://github.com/Glitchbone/jquery-fatNav/blob/master/src/js/jquery.fatNav.js#L62

I guess it is used to avoid a little movement of the body content when opening the menu, however it also cause to set a fixed body width, so subsequently it won't scale on window resizing or orientation change. I guess we should find an alternative way to avoid the body offset movement.

axyz avatar Aug 11 '15 15:08 axyz

whell the body movement is caused by the scrollbar... so a very quick and dirty fix would be to substitute hidden on https://github.com/Glitchbone/jquery-fatNav/blob/master/src/js/jquery.fatNav.js#L63 with auto. this way however you will have a visible scrollbar when the menu is open

axyz avatar Aug 11 '15 15:08 axyz

Sorry guys for being so late, I was really busy. I've just removed the hack to prevent the body movement for now, until I find a good fix

Glitchbone avatar Aug 14 '15 18:08 Glitchbone