Adaptive scaling and HTML5 not working as I would expect

Hello there,

Im experimenting with app that would run in web browser and I decided to use adaptive content scaling for it (because I would like that the app would cover whole browser window).

I assembled this simple example of how I think this should be set up:
resizeExample.zip (68.0 KB) resizeExample.zip (68.0 KB)

Here is built HTML5 version:
http://justkidsdrawings.com/resizeExample/

It creates two objects: rectangle and text showing contentWidth and contentHeight.
Each object has its function object:renew() that resizes/repositiones this object.

I also created resizeListener function and did

Runtime:addEventListener ( "resize", resizeListener )

I set scale = “adaptive” in config.lua and window.defaultMode = “maximized” in build.settings

Now, as I change browser window width and height to triger resize event:

What I expect to see:
I expect that rectangle would cover the whole browser screen as its size is being reseted on resize event to contentWidth, contentHeight and x, y to contentCenterX, contentCenterY

What I see:
Rectangle covers only part of window and doesnt fit the whole browser window.

If you could help me understand what Im doing wrong or what is happenig, it would be great.

Thank you

Jiri

1 Like

HTML never got out of beta. Resize events do not work.

Do you think someone is currently working on HTML5 version or there is no hope this would be taken further in near future?