GUAC-947: Maintain aspect ratio when size is adjusted.

When the display size changes, ensure that any necessary adjustment to any dimension results in a proportionate adjustment to the other dimension, maintaining aspect ratio as closely as possible.