Publisher review:Object Position and Size is a JavaScript library used to find the position of an object on the page regardless of the layout, css, or positioning used. The goal of this library is simple: Find the position of an object on the page regardless of the layout, css, or positioning used. Finding the position of an object on the page seems simple, and many approaches found on the web will show you the simplest case - which will work in most situations.
However, this approach (of just walking up the offsetParent chain and adding offsetLeft and offsetTop values) will not work in cases where there are elements that scroll (such as a DIV with a scrollable content area) and in other situations. It's necessary to have a more robust function which is built to handle as many possible conditions as possible, so it may be "plugged in" to any layout and work correctly. In addition to finding the position of an object, this library also reports back its width and height. Also, it provides a convenience method for setting the position of an object.
Object Position and Size is a JavaScript script for Development Tools scripts design by Matt Kruse.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Object Position and Size is a JavaScript library used to find the position of an object on the page regardless of the layout, css, or positioning used.
Operating system:Windows / Linux / Mac OS / BSD / Solaris