Hi there,
How do I get and set position and size of a html node (certain elements)?
Following will not work for non absolute elements:
document.defaul tView.getComput edStyle(element ,null).getPrope rtyValue("left" )
/ getPropertyValu e("width") ...
It will return "auto" in certain circumstances.
Using offsetLeft / offsetWidth to get the size and position seems also
not to be the best since values sometimes seems to be incorrect. Setting
control width to offsetWidth will causes the control to get larger than
before.
What is the best way to do this?
Is there any open source javascript "library" (js file) for this purpose?
yours
Benjamin