src/sap.ui.core/src/sap/ui/core/delegate/ScrollEnablement.js
function(vElement) {
				// check if vElement is a DOM element and if yes convert it to jQuery object
				var $Element = vElement instanceof jQuery ? vElement : jQuery(vElement),
					oElementPosition = $Element.position(),
					$OffsetParent = $Element.offsetParent(),
					oAddUpPosition;

				while (!$OffsetParent.is(this._$Container)) {
					oAddUpPosition = $OffsetParent.position();
					oElementPosition.top += oAddUpPosition.top;
					oElementPosition.left += oAddUpPosition.left;
					$OffsetParent = $OffsetParent.offsetParent();
				}

				return oElementPosition;
			}
function(vElement) {
				// check if vElement is a DOM element and if yes convert it to jQuery object
				var $Element = vElement instanceof jQuery ? vElement : jQuery(vElement),
					oElementPosition = $Element.position(),
					$OffsetParent = $Element.offsetParent(),
					oAddUpPosition;

				while (!$OffsetParent.is(this._$Container)) {
					oAddUpPosition = $OffsetParent.position();
					oElementPosition.top += oAddUpPosition.top;
					oElementPosition.left += oAddUpPosition.left;
					$OffsetParent = $OffsetParent.offsetParent();
				}

				return oElementPosition;
			}
function ( vElement ) { // check if vElement is a DOM element and if yes convert it to jQuery object var $Element = vElement instanceof jQuery ? vElement : jQuery ( vElement ) , oElementPosition = $Element . position ( ) , $OffsetParent = $Element . offsetParent ( ) , oAddUpPosition ; while ( ! $OffsetParent . is ( this . _$Container ) ) { oAddUpPosition = $OffsetParent . position ( ) ; oElementPosition . top += oAddUpPosition . top ; oElementPosition . left += oAddUpPosition . left ; $OffsetParent = $OffsetParent . offsetParent ( ) ; } return oElementPosition ; }
Calculates scroll position of a child of a container.
@param {HTMLElement | jQuery} vElement An element(DOM or jQuery) for which the scroll position will be calculated.
@returns {object} Position object.
@protected
Calculates scroll position of a child of a container .