minor tweak to viewport calculation. still not quite right but better.