How to get newWebView to zoom to fit screen for difference devices?
So I am create some simple HTML pages with a table, saving this to file (with the below meta tag) and then. I’ve discovered the meta tag but even with the below, whilst it works well with iPhone 5, with iPad it only take up 1/2 the width of the screen?
\<head\> \<meta name = "viewport" content = "width = device-width"\> \</head\>
Not sure if this is relevant however my config.lua has:
local aspectRatio = display.pixelHeight / display.pixelWidth local width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ) local height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ) application = { content = { width = width, height = height, scale = "letterBox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@3x"] = 3.0, }, }, }