This doesntdoesn't work for some files and for the love of anything I cantcan't find out why. I have been searching for years now.
In some files, I just cannot align any layers to the base layer which is locked or to any other layer. Even, even if I lock it.
What happens is the base layer moves. If If I try to center align a layer to the center of the image and I select the background layer which is locked the align and distribute options are greyed out.
I have done this before in other files but for some reason wontwon't work in some files.
If I unlock the layer then the background layer will move and center align with the other layer which obviousobviously makes a huge mess.
The only option to align is to move the layers I want to align to the center and then if I am lucky enough it will align towith the back groundbackground layer.