viewport does not scale properly (iOS)

2 posts, 1 answers
  1. Alexander
    Alexander avatar
    1 posts
    Member since:
    Jun 2013

    Posted 02 Jul 2013 Link to this post

    testing our web site using icenium graphite we've determined layout differences between the external Safari browser and the internally used uiwebview control.
    While the external browser scales the output changing the viewport width to a specific width (
    <meta name="viewport" id="viewport" content="width=480, user-scalable=no">
    ), the internally used control doesn't.

    When trying this:'index.html', '_blank', 'toolbar=no,menubar=no,location=no,enableViewportScale=yes');
    the output is diplayed properly, but this is a window. So not a reasonable work around.

    My question is, is it possible to set "enableViewportScale=yes" for the internally used browser control otherwise? If yes, how?
    Using PhoneGap Build there is a config.xml which allows to set this preference.

    The best solution for us would be, if we could set this in code.

    Thank You

    Alexander Genne
  2. Answer
    Steve avatar
    10941 posts

    Posted 03 Jul 2013 Link to this post

    Hi Alexander,

    You could alter the enableViewportScale for your project by editing the iOS config.xml file, see Edit Configuration Files help article for more information.


    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
Back to Top