Position
Documentation and test page for the UCASUtilities.position component.
Limitations
This has only been written to handle setting a position in an absolutely-positioned parent that has the same dimensions as the window.
get()
UCASUtilities.position.get(element, ancestor) // Get node position relative to an ancestor.
set()
UCASUtilities.position.set(element, position, offsetLeft, offsetTop, offsetRight, offsetBottom) // Set node position.
clone()
UCASUtilities.position.clone(element, reference, offsetLeft, offsetTop, offsetRight, offsetBottom) // Clone node position.
reset()
UCASUtilities.position.reset(element) // Reset node position.