This may be similar to the problem that I was having with a Canvas that was 1440 pixels wide.
(You cannot set canvas width larger than 999 in the Designer)
I had to set the width to 1440 in the screen Initialize block, then start a timer which checked if the canvas had changed to the desired width.
Once it had resized, the app continued execution of other blocks.
So you might set the x value to 5 then start a timer to wait for the x value to change to 5.
Just something to try.
---
Scott