The help file for
pinrectangle( clearly states: "This function doesn’t change the size of the rectangle(my emphasis), it just adjusts its position if necessary to ensure that it is inside the second rectangle."
In my testing when using
pinrectangle( with the
info("screenrectangle") it always produced a rectangle the full size of the screen plus it moved it to the left, off screen by the same amount the original rectangle's right edge was left of the right screen edge to start with. I used the sample code from the Help file.
Just entered this as Bitbucket Issue #680.