If panorama stitching yields alignment errors or you simply require more control over how each image is stitched, you can further edit the panorama between the initial stitching and the final result.
On the Edit menu, use Crop to bounds or Crop to opaque to crop to the panorama's bounding box or remove any unwanted transparent regions at the image edge, respectively.