Giter Club home page Giter Club logo

Comments (15)

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

@wintnerdzn: I believe that is due to the mobile safari viewport orientation change bug (http://filamentgroup.com/examples/iosScaleBug/).

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Thanks, Jason. But doesn't that defeat the purpose of the FlexNav? Is there something we can write to override this behavior?

from flexnav.

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

@wintnerdzn: FlexNav provides a common pattern for responsive navigation only and doesn't address other issues a developer may come across during development.

There are a few solutions to the mobile safari orientation change bug:

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

My project uses
this:
meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"

and is still experiencing this bug. So JavaScript to disable user scaling will not help.
Thank you for creating FlexNav, it is a great solution but this makes it not responsive in widely-used devices.

from flexnav.

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

@wintnerdzn: Do you have the site up on a server? I'd be happy to debug.

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Thanks, Jason! This is in early development and I have a lot of work optimizing ahead...
(everytime I get ready to optimize I come across another bug to debug! Ugh! But, I'm sure learning a lot!)
http://www.wintnerdesign.com/

from flexnav.

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

I've set up a testing site for Flexnav with zoom disabled: http://jasonweaver.name/lab/flexiblenavigation-nozoom . Using <meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' />

Looks like your issue is not with navigation but some sort of strange page rendering in landscape. (I'm testing on a 3rd gen iPad running iOS 6.0)

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Hmmm. I read that the bug no longer exists in iOS6.
But your test site seems ok on my iPad version 5.1. Thanks.
Now, to figure out why the bug is in my code...

from flexnav.

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

@wintnerdzn: Ok cool. I'm going to close this issue. Thanks.

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Wait. I'm seeing an issue in console in your solution even.

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Viewport argument value "device-width;" for key "width" not recognized. Content ignored.
What's that?

from flexnav.

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

Oh right. I had semicolons instead of the proper commas separating attributes in the meta tag. I've changed the meta tag to <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Thank you, Jason. Don't know why but you fixed it on my iPad. Will have to check the iPhone version 4.2 later (not available now.)

from flexnav.

wintnerdzn avatar wintnerdzn commented on September 25, 2024

Thank you Jason.

from flexnav.

mrjasonweaver avatar mrjasonweaver commented on September 25, 2024

@wintnerdzn You're welcome. :)

from flexnav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.