resizeBy()

This method is used to shift the size of the window by the X and Y axis amounts. Values are specified in pixels. It should be noted that the top and left edges of the window will not move. It is the bottom and right edges which will move to resize the window. The values can be negative or positive, and because of this are known as deltaX and deltaY.

syntax:

resizeBy (deltaX , deltaY)

This method is used with the following:

layer
window