How to keep content from scaling on window resize?

Hi,

I’d like to have my app stay the same size and centered in the browser window. I can start it out that way on first load using this in build.settings:

 window = { defaultMode = "normal", defaultViewWidth = 960, defaultViewHeight = 640, titleText = { default = "MyGame" } },

But as soon as I resize the window, the whole app scales to fill the browser window.

What settings do I need to put in to keep this from happening? Basically I want the size of the app to stay 960x640 and centered no matter how the browser window is resized.

-dev

I want to say, you need to use ‘adaptive’, but the docs say it isn’t supported.

Still, for some reason I remember doing this for EAT.

Wait, my bad.  I thought you meant for desktop.  Didn’t notice the forum this message is in.  Don’t have my glasses. :slight_smile:

Have you tried setting resizable to false?

https://docs.coronalabs.com/guide/distribution/win32Build/index.html#resizable

Rob

Hi,

I have tried about every config option in every combination :huh: . I’m thinking maybe I have to edit the CSS directly on the index.html, but that would be kind of a bummer.

-dev

We probably should honor the resize option. I’ll bring it up to the team.

Rob

I want to say, you need to use ‘adaptive’, but the docs say it isn’t supported.

Still, for some reason I remember doing this for EAT.

Wait, my bad.  I thought you meant for desktop.  Didn’t notice the forum this message is in.  Don’t have my glasses. :slight_smile:

Have you tried setting resizable to false?

https://docs.coronalabs.com/guide/distribution/win32Build/index.html#resizable

Rob

Hi,

I have tried about every config option in every combination :huh: . I’m thinking maybe I have to edit the CSS directly on the index.html, but that would be kind of a bummer.

-dev

We probably should honor the resize option. I’ll bring it up to the team.

Rob