HTML viewer doesn't scale correctly

I am writing an app, that uses the HTMLviewer, to display a webpage.

The page displays correct in safari on the iPhone, but in the HTMLviewer on the Simulator, its too wide, about 1.5 - 2 time.

The page has the META TAG in it.

Ideas anyone?

[quote=227003:@Jan S. Bjerring]I am writing an app, that uses the HTMLviewer, to display a webpage.

The page displays correct in safari on the iPhone, but in the HTMLviewer on the Simulator, its too wide, about 1.5 - 2 time.

The page has the META TAG in it.

Ideas anyone?[/quote]

You should use the scale. (usually 1, I just guessed .75) :

<meta name="viewport" content="width=device-width, initial-scale=.75">

Thanks a lot Michael :slight_smile:

You’re welcome :slight_smile:

https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html