transfer viewport from proto