This function adapts canvas size to the size of the biggest image layer (in both dimensions).
This command can be accessed from an image menubar as Image->Fit Canvas to Layers, This function has no default shortcut.