2008-02-05 14:51:10
Hi all,
I try in a javascript script to change the position of a layer, or the content of the layer. Actually, I try to align two layers, and I want to use the applyOffset or translate method ( I didn't find another methods). But I can't know the x and y positions of the layers, neither the with and the height. So I can't calculate the positions offset.
I didn't see layer methods or properties that return theses informations.
So, how I can do to align two layers ?
Thanks
I try in a javascript script to change the position of a layer, or the content of the layer. Actually, I try to align two layers, and I want to use the applyOffset or translate method ( I didn't find another methods). But I can't know the x and y positions of the layers, neither the with and the height. So I can't calculate the positions offset.
I didn't see layer methods or properties that return theses informations.
So, how I can do to align two layers ?
Thanks
#1