Hi,
I’m not certain of your apps use case, but I recommend removing all the defaults from the build.settings in regards to sizing. Go with “landscapeRight” as the orientation. Set config.lua to “letterbox” and make sure to set a good size ratio for landscape.
At that point everything is working as it should. The app will be scaling, keeping the correct aspect ration, without distortion, which I think you would want.
The issue you’re running against is as opposed to a device, the browser can be resized at will by the user, so this needs to be handled in one of two ways. You either decide on a set size (using defaultMode), or what I outlined above. In either case you will need to add a background/background color to handle the overflow, just as you would in a device app using letterbox scaling.
I add a black background to my apps, but you may need or want a different color. You set the hex color in index.html (and index-debug.html if you use it) by adding it to the style tag near the top of the page:
\<style\> body \> div { ... background-color: #000000; /\* bg color \*/ } \</style\>
At this time I think that is the best that can be done. The index(s).html are not overwritten during builds.
Hope that helps.
-dev