Application Framework Reference

Splunk API

getCumlativeOffsetTop()

The getCumlativeOffsetTop() method gets the value of the specified DOM element parameter.

Synopsis

offset = Splunk.util.getCumlativeOffsetTop( element )

Parameters

element

Object

DOM element: offsetTop or offsetParent.

Return Value

Integer

Cumulative DOM element value.

Example

var height = ($(window).height() + Splunk.util.getPageYOffset() + pixelAdjustment) - \
    Splunk.util.getCumlativeOffsetTop(this.container[0]);
 

See Also

getCumlativeOffsetLeft()
getPageYOffset()