bundles/org.eclipse.orion.client.ui/web/orion/webui/littlelib.js
function getOffsetParent(node) {
		var offsetParent = node.parentNode, documentElement = document.documentElement;
		while (offsetParent && offsetParent !== documentElement) {
			var style = window.getComputedStyle(offsetParent, null);
			if (!style) { break; }
			var overflow = style.getPropertyValue("overflow-y"); //$NON-NLS-0$
			if (overflow === "auto" || overflow === "scroll") { break; } //$NON-NLS-1$ //$NON-NLS-0$
			offsetParent = offsetParent.parentNode;
		}
		return offsetParent;
	}
function getOffsetParent(node) {
		var offsetParent = node.parentNode, documentElement = document.documentElement;
		while (offsetParent && offsetParent !== documentElement) {
			var style = window.getComputedStyle(offsetParent, null);
			if (!style) { break; }
			var overflow = style.getPropertyValue("overflow-y"); //$NON-NLS-0$
			if (overflow === "auto" || overflow === "scroll") { break; } //$NON-NLS-1$ //$NON-NLS-0$
			offsetParent = offsetParent.parentNode;
		}
		return offsetParent;
	}
function getOffsetParent ( node ) { var offsetParent = node . parentNode , documentElement = document . documentElement ; while ( offsetParent && offsetParent !== documentElement ) { var style = window . getComputedStyle ( offsetParent , null ) ; if ( ! style ) { break ; } var overflow = style . getPropertyValue ( "overflow-y" ) ; //$NON-NLS-0$
 if ( overflow === "auto" || overflow === "scroll" ) { break ; } //$NON-NLS-1$ //$NON-NLS-0$
 offsetParent = offsetParent . parentNode ; } return offsetParent ; }
Returns the parent of the node that has the vertical scroll bar.

@name orion.webui.littlelib.getOffsetParent
@function
@static
@param {Element} node The node to lookup the offset parent
Returns the parent of the node that has the vertical scroll bar .