My content is contained within an 800x480 pixel box. When the window size changes, I want to achieve the following:
- Expand/Stretch the container to fill the entire screen
- Include all elements inside the container and maintain their relative positions
- I am not concerned about preserving the aspect ratio
For example, if the window dimensions are 1600x960, I would:
zoom: 2
This action will stretch the canvas, but if the new aspect ratio differs from 800x480, it may not fully expand in both height and width.
Is there a way to independently set the stretching factor for both width and height?
zoom: (2, 2.5)