pui.shiftElements( start point, end point, move by )



This function shifts all elements between the start point and end point by the specified number of pixels.  It is useful if you want to collapse an invisible section of a long form.

Parameters:

  • start point - the y-coordinate, specified in pixels, where the function will start looking for elements

  • end point - the y-coordinate, specified in pixels, where the function will stop looking for elements

  • move by - the number of pixels to move the elements; use a positive number to move elements down or a negative number to move elements up

Example:

pui.shiftElements(100, 9999, -100); // move elements up by 100 pixels