Javascript Reference
Categories: layer

javascript layer resizeBy( )

@March 15, 2008, 1:22 a.m.
resizeBy( )NN |4| IE n/a Chrome/Safari/DOM n/a  

resizeBy(deltaX, deltaY)

  

A convenience method that shifts the width and height of the current element by specified pixel amounts. To adjust along only one axis, set the other value to zero. Positive values for deltaX make the element wider; negative values make the element narrower. Positive values for deltaY make the element taller; negative values make the element shorter. The top and left edges remain fixed; only the right and bottom edges are moved.

 
Parameters
 
  • Positive or negative pixel count of the change in horizontal dimension of the element.
  • Positive or negative pixel count of the change in vertical dimension of the element.
 
Returned Value

None.


Powered by Linode.