The Fit Canvas to Layers command adapts the
canvas size (that is, the drawing area) to the size of the largest
layer in the image, in both width and height.
9.15.1.
Activating the command
You can access this command from the image menubar through
Image->Fit Canvas to Layers.
Published under the terms of the GNU General Public License