This is a migrated thread and some comments may be shown as answers.

viewport does not scale properly (iOS)

1 Answer 68 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 02 Jul 2013, 04:04 PM
Hi,
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:
window.open('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

Regards
Alexander Genne

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 03 Jul 2013, 11:07 AM
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.

Regards,
Steve
Telerik

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.
Tags
AppBuilder Windows client
Asked by
Alexander
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or