Modified viewport to use ratios for auto scaling