レイヤーをキャンバスに合わせる コマンドはレイヤーの境界線を画像の境界線まで拡げます。 レイヤーに描かれた内容は移動しません。
You can access this command from the main menu through Layer → Layer to Image Size.