Automatically expand viewport