New: Attempt at auto-calculating viewport size