You can not change the location.
The dotted line is a representative of the window size set in the project properties.
From what your saying it sounds like your canvas is smaller then the scaled window size.
Perhaps try a bigger layout, or smaller window size.