view/default/jquery-ui/development-bundle/ui/jquery-ui-1.8.16.custom.js
function(pos) {
				var topOffset = $(this).css(pos).offset().top;
				if (topOffset < 0) {
					$(this).css('top', pos.top - topOffset);
				}
			}
function(pos) {
				var topOffset = $(this).css(pos).offset().top;
				if (topOffset < 0) {
					$(this).css('top', pos.top - topOffset);
				}
			}
function ( pos ) { var topOffset = $ ( this ) . css ( pos ) . offset ( ) . top ; if ( topOffset < 0 ) { $ ( this ) . css ( 'top' , pos . top - topOffset ) ; } }
ensure that the titlebar is never outside the document
ensure that the titlebar is never outside the document