src/sap.ui.core/src/sap/ui/core/delegate/ScrollEnablement.js
function(oElement, iTime, aOffset) {
				aOffset = aOffset || [0, 0];

				// do nothing if _$Container is not a (grand)parent of oElement
				if (!this._$Container[0].contains(oElement) ||
					oElement.style.display === "none" ||
					oElement.offsetParent.nodeName.toUpperCase() === "HTML") {
						return this;
				}

				var $Element = jQuery(oElement),
					oScrollPosition = this.getChildPosition($Element),
					iLeftScroll = this.getScrollLeft() + oScrollPosition.left + aOffset[0],
					iTopScroll = this.getScrollTop() + oScrollPosition.top + aOffset[1];

				if (this._bFlipX) {
					// in IE RTL scrollLeft goes opposite direction
					iLeftScroll = this.getScrollLeft() - (oScrollPosition.left - this._$Container.width()) - $Element.width();
				}

				// scroll to destination
				this._scrollTo(iLeftScroll, iTopScroll , iTime);

				return this;
			}
function(oElement, iTime, aOffset) {
				aOffset = aOffset || [0, 0];

				// do nothing if _$Container is not a (grand)parent of oElement
				if (!this._$Container[0].contains(oElement) ||
					oElement.style.display === "none" ||
					oElement.offsetParent.nodeName.toUpperCase() === "HTML") {
						return this;
				}

				var $Element = jQuery(oElement),
					oScrollPosition = this.getChildPosition($Element),
					iLeftScroll = this.getScrollLeft() + oScrollPosition.left + aOffset[0],
					iTopScroll = this.getScrollTop() + oScrollPosition.top + aOffset[1];

				if (this._bFlipX) {
					// in IE RTL scrollLeft goes opposite direction
					iLeftScroll = this.getScrollLeft() - (oScrollPosition.left - this._$Container.width()) - $Element.width();
				}

				// scroll to destination
				this._scrollTo(iLeftScroll, iTopScroll , iTime);

				return this;
			}
function ( oElement , iTime , aOffset ) { aOffset = aOffset || [ 0 , 0 ] ; // do nothing if _$Container is not a (grand)parent of oElement if ( ! this . _$Container [ 0 ] . contains ( oElement ) || oElement . style . display === "none" || oElement . offsetParent . nodeName . toUpperCase ( ) === "HTML" ) { return this ; } var $Element = jQuery ( oElement ) , oScrollPosition = this . getChildPosition ( $Element ) , iLeftScroll = this . getScrollLeft ( ) + oScrollPosition . left + aOffset [ 0 ] , iTopScroll = this . getScrollTop ( ) + oScrollPosition . top + aOffset [ 1 ] ; if ( this . _bFlipX ) { // in IE RTL scrollLeft goes opposite direction iLeftScroll = this . getScrollLeft ( ) - ( oScrollPosition . left - this . _$Container . width ( ) ) - $Element . width ( ) ; } // scroll to destination this . _scrollTo ( iLeftScroll , iTopScroll , iTime ) ; return this ; }
Scrolls to an element within a container.
@param {HTMLElement} oElement A DOM element.
@param {int} [iTime=0]
The duration of animated scrolling in milliseconds. To scroll immediately without animation,
give 0 as value.
@param {int[]} [aOffset=[0,0]]
Specifies an additional left and top offset of the target scroll position, relative to
the upper left corner of the DOM element
@returns {sap.ui.core.delegate.ScrollEnablement}
@protected
Scrolls to an element within a container .