Adjusting the canvas with layoutcenter