resize behavior in HTML5

Hi 

Using the game template, I set the windows mode in the settings 

window = { defaultMode = "fullscreen",   resizable = true, },  

Then I added a resize listener 

local function onResize( event )     print(display.contentCenterX, display.pixelWidth, display.actualContentWidth  ) end Runtime:addEventListener( "resize", onResize )

then I built for HTML5. When I resize the (Chrome) window, the resize listener gets called, but none of the values change. Am I doing something wrong or is there an issue with this in HTML5 build (I don’t usually use this event in my app développement)  ?

Hi,

I’m sure what your use case it, but this might be helpful https://github.com/develephant/corona-html5-windowSize-plugin

-dev

It’s not so much of a use case, more just a case of taking the HTML5 beta build for a spin, using the Corona game template and trying to center the title text  :slight_smile:

Thanks for the report…  I need to check it

Any news on this ? I’ looking at having a “responsive” type behavior where content is reduced or hidden based on window size (and obviously the easiest way to demonstrate it or test it is to resize the browser window)

no yet… fixing

fixed in 3329

Hi,

I’m sure what your use case it, but this might be helpful https://github.com/develephant/corona-html5-windowSize-plugin

-dev

It’s not so much of a use case, more just a case of taking the HTML5 beta build for a spin, using the Corona game template and trying to center the title text  :slight_smile:

Thanks for the report…  I need to check it

Any news on this ? I’ looking at having a “responsive” type behavior where content is reduced or hidden based on window size (and obviously the easiest way to demonstrate it or test it is to resize the browser window)

no yet… fixing

fixed in 3329