Hello!
I’m trying to show an html page on the app. The html file is on the device. It works fine on simulator:
Here font on html has font-size: 80%
self.webView = native.newWebView(WEB\_X, WEB\_Y, WEB\_W, WEB\_H) self.webView:request(HTML\_HELP, system.ResourceDirectory)
being WEB_W = display.contentWidth and WEB_X = display.contentWidth / 2
config.lua:
application = { content = { width = 320, height = 570, ...
It shows the html file in the area indicated (full width, full height except header and footer).
But when I test on an Android device (I’ve tested on several of them, with different screen sizes and resolutions), the html area seems to fill only half the width, with a very small font.
If I put a bigger figure on WEB_W (twice, for example), then I see only half contents, and have no horizontal scroll.
Here font on html has font-size: 200%
Have anyone any idea about how to fix this?
Thank you!