I have written some tiny code to avoid this issue.
With this code you can align items on the canvas.
I hope this will be some help for someone.