Made viewport extra margin proportional to viewport size.