Recalculate the aspect ratio upon resize.

The method for doing so is somewhat simple, but it should be easy to
replace if our needs change.